Skip to content

Commit afc7e6b

Browse files
committed
Fixed #2253 Amazon Prime Gaming page doesn't load
1 parent 67f32b2 commit afc7e6b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@
7474
"js-base64": "^3.7.2",
7575
"lodash": "^4.17.21",
7676
"marked": "^4.0.10",
77-
"pdfjs-dist": "^4.2.67"
77+
"pdfjs-dist": "4.8.69"
7878
}
7979
}

src/content_scripts/front.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,16 @@ function createFront(insert, normal, hints, visual, browser) {
415415
};
416416

417417
self.showStatus = function (msgs, duration) {
418-
self.command({
419-
action: "showStatus",
420-
contents: msgs,
421-
duration: duration
422-
});
418+
// when showModeStatus is on, showStatus will cause uiHost injected too early
419+
// which could break some host scripts from sites in Firefox.
420+
const waitForHostScripts = (getBrowserName() === "Firefox") ? 1000 : 0;
421+
setTimeout(() => {
422+
self.command({
423+
action: "showStatus",
424+
contents: msgs,
425+
duration: duration
426+
});
427+
}, waitForHostScripts);
423428
};
424429
self.toggleStatus = function (visible) {
425430
self.command({

0 commit comments

Comments
 (0)