diff options
author | hackademix | 2019-07-25 15:16:34 +0200 |
---|---|---|
committer | hackademix | 2019-07-25 15:16:34 +0200 |
commit | 491736d5e78785c836d48ff0e2c6e2fc1ade0bc7 (patch) | |
tree | 88d607857c4d6b810857441c69e018df13acdbbf /src/lib/UA.js | |
parent | cae465b19c6c03ecfa7de78af5d8b9cc7ff469c9 (diff) | |
download | noscript-491736d5e78785c836d48ff0e2c6e2fc1ade0bc7.tar.gz noscript-491736d5e78785c836d48ff0e2c6e2fc1ade0bc7.tar.xz noscript-491736d5e78785c836d48ff0e2c6e2fc1ade0bc7.zip |
Fix bug in browser type detection by content scripts.
Diffstat (limited to 'src/lib/UA.js')
-rw-r--r-- | src/lib/UA.js | 2 |
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 |