Update app.js

This commit is contained in:
Aditya kumar singh 2025-09-15 23:52:38 +05:30
parent a7c074db04
commit b0f8c1cf1b

View File

@ -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", "/");
}