From 491736d5e78785c836d48ff0e2c6e2fc1ade0bc7 Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 25 Jul 2019 15:16:34 +0200 Subject: Fix bug in browser type detection by content scripts. --- src/lib/UA.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/UA.js b/src/lib/UA.js index d87efbb..db5df9d 100644 --- a/src/lib/UA.js +++ b/src/lib/UA.js @@ -1,6 +1,6 @@ { let mozWebExtUrl = document.URL.startsWith("moz-"); - let isMozilla = mozWebExtUrl || window.wrappedJSObject === "object"; + let isMozilla = mozWebExtUrl || typeof window.wrappedJSObject === "object"; if (isMozilla) { if (mozWebExtUrl) { // help browser-specific UI styling -- cgit v1.2.3