summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorhackademix2019-04-01 19:12:20 +0200
committerhackademix2019-04-01 19:12:20 +0200
commitf145e625e4ab2118c811ef4403c0939a1d30b5a7 (patch)
treebf1b1a1c7131475d00b9a597d9fc38ba26f6ea1e /src/lib
parent688f7a31fab74ee1b1ffbc6c5dfb8fd418dcc844 (diff)
downloadnoscript-f145e625e4ab2118c811ef4403c0939a1d30b5a7.tar.gz
noscript-f145e625e4ab2118c811ef4403c0939a1d30b5a7.tar.xz
noscript-f145e625e4ab2118c811ef4403c0939a1d30b5a7.zip
Limit wrappedJSObject usages to compatible browsers.
Diffstat (limited to 'src/lib')
-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 1a1771a..438eaf6 100644
--- a/src/lib/UA.js
+++ b/src/lib/UA.js
@@ -1,5 +1,5 @@
var UA = {
- isMozilla: document.URL.startsWith("moz-"),
+ isMozilla: document.URL.startsWith("moz-") || typeof window.wrappedJSObject === "object",
}
if (!UA.isMozilla) {