diff options
-rw-r--r-- | src/lib/UA.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/UA.js b/src/lib/UA.js index 0a751a4..1a1771a 100644 --- a/src/lib/UA.js +++ b/src/lib/UA.js @@ -2,7 +2,11 @@ var UA = { isMozilla: document.URL.startsWith("moz-"), } -if (!UA.isMozilla && typeof chrome === "object" && !chrome.tabs && typeof exportFunction === "undefined") { - // content script shims - window.exportFunction = () => {}; +if (!UA.isMozilla) { + if (typeof chrome === "object" && !chrome.tabs && typeof exportFunction === "undefined") { + // content script shims + window.exportFunction = () => {}; + } +} else { + document.documentElement.classList.add("mozwebext"); } |