Fix bug in browser type detection by content scripts.

This commit is contained in:
hackademix 2019-07-25 15:16:34 +02:00
parent cae465b19c
commit 491736d5e7
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
let mozWebExtUrl = document.URL.startsWith("moz-"); let mozWebExtUrl = document.URL.startsWith("moz-");
let isMozilla = mozWebExtUrl || window.wrappedJSObject === "object"; let isMozilla = mozWebExtUrl || typeof window.wrappedJSObject === "object";
if (isMozilla) { if (isMozilla) {
if (mozWebExtUrl) { if (mozWebExtUrl) {
// help browser-specific UI styling // help browser-specific UI styling