Update app.js
This commit is contained in:
parent
a7c074db04
commit
b0f8c1cf1b
@ -777,7 +777,7 @@ const PDFViewerApplication = {
|
|||||||
const params = parseQueryString(queryString);
|
const params = parseQueryString(queryString);
|
||||||
file = params.get("file") ?? AppOptions.get("defaultUrl");
|
file = params.get("file") ?? AppOptions.get("defaultUrl");
|
||||||
try {
|
try {
|
||||||
file = new URL(file).href;
|
file = new URL(decodeURIComponent(file)).href;
|
||||||
} catch {
|
} catch {
|
||||||
file = encodeURIComponent(file).replaceAll("%2F", "/");
|
file = encodeURIComponent(file).replaceAll("%2F", "/");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user