From 31fa27e8920267e03580c94d84cb0df80440c260 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 13 May 2021 12:40:22 +0200 Subject: make extension work under IceCat 60 --- common/browser.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'common') 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; } })(); -- cgit v1.2.3