summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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