Update app.js
This commit is contained in:
parent
e751fd0f68
commit
244c528883
@ -649,8 +649,8 @@ const PDFViewerApplication = {
|
||||
overlayManager,
|
||||
eventBus,
|
||||
l10n,
|
||||
/* fileNameLookup = */ () => this._docFilename,
|
||||
/* titleLookup = */ () => this._docTitle
|
||||
/* fileNameLookup = */() => this._docFilename,
|
||||
/* titleLookup = */() => this._docTitle
|
||||
);
|
||||
}
|
||||
|
||||
@ -778,7 +778,7 @@ const PDFViewerApplication = {
|
||||
const params = parseQueryString(queryString);
|
||||
file = params.get("file") ?? AppOptions.get("defaultUrl");
|
||||
try {
|
||||
file = new URL(decodeURIComponent(file)).href;
|
||||
file = new URL(file).href;
|
||||
} catch {
|
||||
file = encodeURIComponent(file).replaceAll("%2F", "/");
|
||||
}
|
||||
@ -2380,7 +2380,7 @@ const PDFViewerApplication = {
|
||||
document.blockUnblockOnload?.(false);
|
||||
|
||||
// Ensure that this method is only ever run once.
|
||||
this._unblockDocumentLoadEvent = () => {};
|
||||
this._unblockDocumentLoadEvent = () => { };
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user