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