Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Dec 6, 2024
1 parent 7838acf commit 351a06b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,9 @@ function showExportPopup() {
const queryParams = `?api_key=${apiKey}`;
const fullUrl = host.replace('calendar.php', apiPath) + queryParams;
document.getElementById('iCalendarUrl').value = fullUrl;

if (apiKey === "") {
showErrorMessage( "<?= translate('invalid_api_key', $i18n) ?>" );
return;
}
document.getElementById('subscriptions_calendar').classList.add('is-open');
}

function closePopup() {
document.getElementById('subscriptions_calendar').classList.remove('is-open');
}
Expand Down

0 comments on commit 351a06b

Please sign in to comment.