Skip to content

Commit

Permalink
Ensure elements which may not exist are tested for
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Nov 15, 2022
1 parent 2e86f76 commit da80bcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,8 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
$('#articleContent').contents().remove();

// Hide any alert box that was activated in uiUtil.displayFileDownloadAlert function
document.getElementById('downloadAlert').style.display = 'none';
var downloadAlert = document.getElementById('downloadAlert');
if (downloadAlert) downloadAlert.style.display = 'none';

var iframeArticleContent = document.getElementById('articleContent');

Expand Down

0 comments on commit da80bcf

Please sign in to comment.