diff options
author | Wojtek Kosior <wk@koszkonutek-tmp.pl.eu.org> | 2021-05-13 12:40:22 +0200 |
---|---|---|
committer | Wojtek Kosior <wk@koszkonutek-tmp.pl.eu.org> | 2021-05-13 12:40:22 +0200 |
commit | 31fa27e8920267e03580c94d84cb0df80440c260 (patch) | |
tree | 57e4ffb3df49cca81bb8b67e44e884e38c5d4205 /common | |
parent | c4ed1b8d44c37938aaa9b12674077274554742eb (diff) | |
download | browser-extension-31fa27e8920267e03580c94d84cb0df80440c260.tar.gz browser-extension-31fa27e8920267e03580c94d84cb0df80440c260.zip |
make extension work under IceCat 60
Diffstat (limited to 'common')
-rw-r--r-- | common/browser.js | 9 |
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; } })(); |