aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
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;
}
})();