mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Merge pull request #15432 from Snuffleupagus/validateFileURL-var
Some *small* viewer clean-up for non-GENERIC builds
This commit is contained in:
commit
f7ab417757
2 changed files with 13 additions and 15 deletions
|
@ -2179,14 +2179,14 @@ const PDFViewerApplication = {
|
|||
},
|
||||
};
|
||||
|
||||
let validateFileURL;
|
||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
||||
const HOSTED_VIEWER_ORIGINS = [
|
||||
"null",
|
||||
"http://mozilla.github.io",
|
||||
"https://mozilla.github.io",
|
||||
];
|
||||
validateFileURL = function (file) {
|
||||
// eslint-disable-next-line no-var
|
||||
var validateFileURL = function (file) {
|
||||
if (!file) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue