1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #18651 from Rob--W/crx-mv3-prep-drop-manifest

[CRX] Remove obsolete manifest features
This commit is contained in:
Tim van der Meij 2024-08-29 20:18:19 +02:00 committed by GitHub
commit ce656238e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 1 additions and 286 deletions

View file

@ -36,9 +36,6 @@ if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("CHROME")) {
// Example: chrome-extension://.../http://example.com/file.pdf
const humanReadableUrl = "/" + defaultUrl + location.hash;
history.replaceState(history.state, "", humanReadableUrl);
if (top === window) {
chrome.runtime.sendMessage("showPageAction");
}
AppOptions.set("defaultUrl", defaultUrl);
})();

View file

@ -394,15 +394,6 @@ class PDFHistory {
} else {
window.history.pushState(newState, "", newUrl);
}
if (
typeof PDFJSDev !== "undefined" &&
PDFJSDev.test("CHROME") &&
top === window
) {
// eslint-disable-next-line no-undef
chrome.runtime.sendMessage("showPageAction");
}
}
#tryPushCurrentPosition(temporary = false) {