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:
Jonas Jenwald 2023-10-08 13:14:09 +02:00
parent f04967017f
commit 6ac3da0d1f
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ const TMP_DIR = BUILD_DIR + "tmp/";
const TYPESTEST_DIR = BUILD_DIR + "typestest/";
const COMMON_WEB_FILES = [
"web/images/*.{png,svg,gif}",
"web/debugger.{css,js}",
"web/debugger.{css,mjs}",
];
const MOZCENTRAL_DIFF_FILE = "mozcentral.diff";

View File

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

View File

@ -178,7 +178,7 @@ function getViewerConfiguration() {
typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")
? document.getElementById("fileInput")
: null,
debuggerScriptPath: "./debugger.js",
debuggerScriptPath: "./debugger.mjs",
};
}