mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
[GENERIC viewer] Remove the errorWrapper
UI
In the Firefox PDF Viewer this has never been used, with the error message simply printed in the web-console, and (somewhat) recently we've also updated the viewer code to avoid bundling the relevant code there. Furthermore, in the Firefox PDF Viewer we're not even display the *browser* fallback bar any more; see https://bugzilla.mozilla.org/show_bug.cgi?id=1705327. Hence it seems slightly strange to keep this UI around in the GENERIC viewer, and this patch proposes that we simply remove it to simplify/unify the relevant code in the viewer. In particular this also allows us to remove a couple of l10n-strings, which have always been unused in the Firefox PDF Viewer.
This commit is contained in:
parent
a93c01ae6a
commit
75e06fddf1
5 changed files with 4 additions and 124 deletions
|
@ -195,17 +195,6 @@ function getViewerConfiguration() {
|
|||
editorInkThickness: document.getElementById("editorInkThickness"),
|
||||
editorInkOpacity: document.getElementById("editorInkOpacity"),
|
||||
},
|
||||
errorWrapper:
|
||||
typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")
|
||||
? {
|
||||
container: document.getElementById("errorWrapper"),
|
||||
errorMessage: document.getElementById("errorMessage"),
|
||||
closeButton: document.getElementById("errorClose"),
|
||||
errorMoreInfo: document.getElementById("errorMoreInfo"),
|
||||
moreInfoButton: document.getElementById("errorShowMore"),
|
||||
lessInfoButton: document.getElementById("errorShowLess"),
|
||||
}
|
||||
: null,
|
||||
printContainer: document.getElementById("printContainer"),
|
||||
openFileInput:
|
||||
typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue