diff --git a/package.json b/package.json index 4c35631..acc3b50 100644 --- a/package.json +++ b/package.json @@ -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)", diff --git a/src/js/background.js b/src/js/background.js index ac605f3..0cb6a84 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -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://'); }, }; diff --git a/src/manifest.chrome.json b/src/manifest.chrome.json index ebc9a85..cce1fe5 100644 --- a/src/manifest.chrome.json +++ b/src/manifest.chrome.json @@ -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", diff --git a/src/manifest.firefox.json b/src/manifest.firefox.json index dd6f862..0cd2ae3 100644 --- a/src/manifest.firefox.json +++ b/src/manifest.firefox.json @@ -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