|
|
@ -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 => { |
|
|
|