Browse Source

1111

master
jianglong 4 years ago
parent
commit
a0e303fbda
  1. 6
      common/pdfjs/web/viewer.js

6
common/pdfjs/web/viewer.js

@ -1798,9 +1798,9 @@ let validateFileURL;
protocol protocol
} = new URL(file, window.location.href); } = new URL(file, window.location.href);
if (origin !== viewerOrigin && protocol !== "blob:") { // if (origin !== viewerOrigin && protocol !== "blob:") {
throw new Error("file origin does not match viewer's"); // throw new Error("file origin does not match viewer's");
} // }
} catch (ex) { } catch (ex) {
const message = ex && ex.message; const message = ex && ex.message;
PDFViewerApplication.l10n.get("loading_error", null, "An error occurred while loading the PDF.").then(loadingErrorMessage => { PDFViewerApplication.l10n.get("loading_error", null, "An error occurred while loading the PDF.").then(loadingErrorMessage => {

Loading…
Cancel
Save