Skip to content

Commit

Permalink
Fix optional permissions on Firefox.
Browse files Browse the repository at this point in the history
Firefox still uses the `optional_permissions` instead of
`optional_host_permissions` like Chrome.
  • Loading branch information
Sashank999 committed Jun 15, 2024
1 parent b96976d commit f275b68
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
{ "message": "Fixed Trade Open Chat.", "contributor": "TheFoxMan" },
{ "message": "Fixed no notifications.", "contributor": "TheFoxMan" },
{ "message": "Show days(if present) in popup for Jail and Hospital status.", "contributor": "TheFoxMan" },
{ "message": "CORS error for Gym Graph on Firefox.", "contributor": "TheFoxMan" }
{ "message": "CORS error for Gym Graph on Firefox.", "contributor": "TheFoxMan" },
{ "message": "Optional permissions(for Global Revive Provider, TS and YATA) on Firefox.", "contributor": "TheFoxMan" }
],
"changes": [],
"removed": []
Expand Down
11 changes: 11 additions & 0 deletions extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
},
"permissions": ["storage", "notifications", "background", "offscreen", "alarms"],
"host_permissions": ["https://api.torn.com/"],
"optional_permissions": [
"https://www.tornstats.com/*",
"https://yata.yt/*",
"https://www.nukefamily.org/*",
"https://tornuhc.eu/*",
"https://inq.mavri.dev/*",
"https://api.no1irishstig.co.uk/*",
"https://prombot.co.uk:8443/*",
"https://api.lzpt.io/*",
"https://what-the-f.de/*"
],
"optional_host_permissions": [
"https://www.tornstats.com/",
"https://yata.yt/",
Expand Down

0 comments on commit f275b68

Please sign in to comment.