diff options
author | hackademix | 2019-04-01 19:12:20 +0200 |
---|---|---|
committer | hackademix | 2019-04-01 19:12:20 +0200 |
commit | f145e625e4ab2118c811ef4403c0939a1d30b5a7 (patch) | |
tree | bf1b1a1c7131475d00b9a597d9fc38ba26f6ea1e /src/lib | |
parent | 688f7a31fab74ee1b1ffbc6c5dfb8fd418dcc844 (diff) | |
download | noscript-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.js | 2 |
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) { |