Conditional CSS toggle for non-mozilla browsers.
This commit is contained in:
parent
9b5bd1c775
commit
2fa009673f
|
@ -2,7 +2,11 @@ var UA = {
|
||||||
isMozilla: document.URL.startsWith("moz-"),
|
isMozilla: document.URL.startsWith("moz-"),
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!UA.isMozilla && typeof chrome === "object" && !chrome.tabs && typeof exportFunction === "undefined") {
|
if (!UA.isMozilla) {
|
||||||
// content script shims
|
if (typeof chrome === "object" && !chrome.tabs && typeof exportFunction === "undefined") {
|
||||||
window.exportFunction = () => {};
|
// content script shims
|
||||||
|
window.exportFunction = () => {};
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
document.documentElement.classList.add("mozwebext");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue