mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
[GENERIC viewer] Generate the fileInput
DOM-element dynamically
Given that only the GENERIC viewer supports opening more than one PDF document, we can simplify things a tiny bit by instead generating the necessary DOM-element in JavaScript.
This commit is contained in:
parent
32a5bb83d4
commit
f394031c1d
5 changed files with 6 additions and 20 deletions
|
@ -177,10 +177,6 @@ function getViewerConfiguration() {
|
|||
),
|
||||
},
|
||||
printContainer: document.getElementById("printContainer"),
|
||||
openFileInput:
|
||||
typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")
|
||||
? document.getElementById("fileInput")
|
||||
: null,
|
||||
debuggerScriptPath: "./debugger.mjs",
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue