Skip to content

Commit 1e24750

Browse files
Correctly detect the background page on Firefox.
1 parent 7eb3bce commit 1e24750

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

extension/changelog.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
],
1111
"fixes": [
1212
{ "message": "Split requests to TornPal if more scouts are needed than allowed in a single request.", "contributor": "DeKleineKobini" },
13-
{ "message": "Be more resilient when checking if the api key is present.", "contributor": "DeKleineKobini" }
13+
{ "message": "Be more resilient when checking if the api key is present.", "contributor": "DeKleineKobini" },
14+
{ "message": "Correctly detect the background page on Firefox. This should fix multiple features, including the event badge.", "contributor": "DeKleineKobini" }
1415
],
1516
"changes": [
1617
{ "message": "Disable OC1 timer when detecting OC 2 data.", "contributor": "DeKleineKobini" },

extension/scripts/global/functions/utilities.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
44

55
const SCRIPT_TYPE = (() => {
6-
if (typeof window === "undefined") {
6+
if (typeof window === "undefined" || window.location.href.endsWith("/_generated_background_page.html")) {
77
return "BACKGROUND";
88
} else if (chrome.action) {
99
return "POPUP";

0 commit comments

Comments
 (0)