summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix2019-07-25 15:16:34 +0200
committerhackademix2019-07-25 15:16:34 +0200
commit491736d5e78785c836d48ff0e2c6e2fc1ade0bc7 (patch)
tree88d607857c4d6b810857441c69e018df13acdbbf
parentcae465b19c6c03ecfa7de78af5d8b9cc7ff469c9 (diff)
downloadnoscript-491736d5e78785c836d48ff0e2c6e2fc1ade0bc7.tar.gz
noscript-491736d5e78785c836d48ff0e2c6e2fc1ade0bc7.tar.xz
noscript-491736d5e78785c836d48ff0e2c6e2fc1ade0bc7.zip
Fix bug in browser type detection by content scripts.
-rw-r--r--src/lib/UA.js2
1 files changed, 1 insertions, 1 deletions
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