diff options
Diffstat (limited to 'pdf-as-web/src/main/webapp/assets/js/pdf.js')
-rw-r--r-- | pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js index 6a2cc14d..af4fcd8d 100644 --- a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js +++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js @@ -5853,6 +5853,7 @@ var PDFViewerApplication = { // change error message also for other builds loadingErrorMessage = mozL10n.get('invalid_file_error', null, 'Invalid or corrupted PDF file.'); + } else if (exception instanceof PDFJS.MissingPDFException) { // special message for missing PDF's loadingErrorMessage = mozL10n.get('missing_file_error', null, @@ -6074,7 +6075,7 @@ var PDFViewerApplication = { var errorMessage = document.getElementById('errorMessage'); errorMessage.textContent = message; - + var closeButton = document.getElementById('errorClose'); closeButton.onclick = function() { errorWrapper.setAttribute('hidden', 'true'); |