Skip to content

Commit

Permalink
Correctly detect the background page on Firefox.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKleineKobini committed Jan 31, 2025
1 parent 7eb3bce commit 1e24750
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extension/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
],
"fixes": [
{ "message": "Split requests to TornPal if more scouts are needed than allowed in a single request.", "contributor": "DeKleineKobini" },
{ "message": "Be more resilient when checking if the api key is present.", "contributor": "DeKleineKobini" }
{ "message": "Be more resilient when checking if the api key is present.", "contributor": "DeKleineKobini" },
{ "message": "Correctly detect the background page on Firefox. This should fix multiple features, including the event badge.", "contributor": "DeKleineKobini" }
],
"changes": [
{ "message": "Disable OC1 timer when detecting OC 2 data.", "contributor": "DeKleineKobini" },
Expand Down
2 changes: 1 addition & 1 deletion extension/scripts/global/functions/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];

const SCRIPT_TYPE = (() => {
if (typeof window === "undefined") {
if (typeof window === "undefined" || window.location.href.endsWith("/_generated_background_page.html")) {
return "BACKGROUND";
} else if (chrome.action) {
return "POPUP";
Expand Down

0 comments on commit 1e24750

Please sign in to comment.