Fix bug in browser type detection by content scripts.
This commit is contained in:
parent
cae465b19c
commit
491736d5e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue