aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWojtek Kosior <wk@koszkonutek-tmp.pl.eu.org>2021-05-13 12:40:22 +0200
committerWojtek Kosior <wk@koszkonutek-tmp.pl.eu.org>2021-05-13 12:40:22 +0200
commit31fa27e8920267e03580c94d84cb0df80440c260 (patch)
tree57e4ffb3df49cca81bb8b67e44e884e38c5d4205 /common
parentc4ed1b8d44c37938aaa9b12674077274554742eb (diff)
downloadbrowser-extension-31fa27e8920267e03580c94d84cb0df80440c260.tar.gz
browser-extension-31fa27e8920267e03580c94d84cb0df80440c260.zip
make extension work under IceCat 60
Diffstat (limited to 'common')
-rw-r--r--common/browser.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/browser.js b/common/browser.js
index 1d9edda..d1aab82 100644
--- a/common/browser.js
+++ b/common/browser.js
@@ -16,12 +16,13 @@
*/
(() => {
- if (window.browser === undefined) {
+ if (typeof browser === "object") {
+ window.browser = browser;
+ window.is_chrome = false;
+ window.is_mozilla = true;
+ } else {
window.browser = window.chrome;
window.is_chrome = true;
window.is_mozilla = false;
- } else {
- window.is_chrome = false;
- window.is_mozilla = true;
}
})();