Skip to content

Commit

Permalink
Merge pull request #17094 from Snuffleupagus/debugger-module
Browse files Browse the repository at this point in the history
Rename `web/debugger.js` since it's actually a JavaScript module (PR 17055 follow-up)
  • Loading branch information
Snuffleupagus committed Oct 8, 2023
2 parents f049670 + 6ac3da0 commit d64f223
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion web/debugger.js → web/debugger.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function getViewerConfiguration() {
typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")
? document.getElementById("fileInput")
: null,
debuggerScriptPath: "./debugger.js",
debuggerScriptPath: "./debugger.mjs",
};
}

Expand Down

0 comments on commit d64f223

Please sign in to comment.