Skip to content

Commit

Permalink
[Fix] Firefox detection (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilar6195 authored Sep 9, 2023
1 parent 6750d6e commit eb55d85
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chibisafe-extension",
"version": "2.0.0",
"version": "2.0.1",
"description": "Uploader for chibisafe.",
"repository": "https://github.com/chibisafe/chibisafe-extension.git",
"author": "pilar6195 (https://github.com/pilar6195)",
Expand Down
3 changes: 2 additions & 1 deletion src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ const Helpers = {
},

get isFirefox() {
return typeof InstallTrigger !== 'undefined';
// idk if this is the best way to check if the browser is firefox but it works.
return browser.runtime.getURL('').includes('moz-extension://');
},
};

Expand Down
4 changes: 2 additions & 2 deletions src/manifest.chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"manifest_version": 3,
"name": "chibisafe Uploader",
"description": "Uploader for chibisafe",
"version": "2023.9.8.0",
"version_name": "2.0",
"version": "2023.9.9.0",
"version_name": "2.0.1",
"minimum_chrome_version": "93.0",
"options_ui": {
"page": "settings.html",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "chibisafe Uploader",
"description": "Uploader for chibisafe",
"version": "2.0",
"version": "2.0.1",
"options_ui": {
"page": "settings.html",
"open_in_tab": true
Expand Down

0 comments on commit eb55d85

Please sign in to comment.