mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Rename web/debugger.js
since it's actually a JavaScript module (PR 17055 follow-up)
It's been loaded as a JavaScript module for a long time, and given that the file is bundled as-is (without building) it seems reasonable to just change the file extension now.
This commit is contained in:
parent
f04967017f
commit
6ac3da0d1f
3 changed files with 3 additions and 3 deletions
|
@ -574,7 +574,7 @@ class PDFBug {
|
|||
|
||||
const link = document.createElement("link");
|
||||
link.rel = "stylesheet";
|
||||
link.href = url.replace(/.js$/, ".css");
|
||||
link.href = url.replace(/\.mjs$/, ".css");
|
||||
|
||||
document.head.append(link);
|
||||
}
|
|
@ -178,7 +178,7 @@ function getViewerConfiguration() {
|
|||
typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")
|
||||
? document.getElementById("fileInput")
|
||||
: null,
|
||||
debuggerScriptPath: "./debugger.js",
|
||||
debuggerScriptPath: "./debugger.mjs",
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue