summaryrefslogtreecommitdiff
path: root/src/lib/UA.js
blob: 1a1771a17b3c3adcf4b8646e70f42af86e39ab7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var UA = {
  isMozilla: document.URL.startsWith("moz-"),
}

if (!UA.isMozilla) {
  if (typeof chrome === "object" && !chrome.tabs && typeof exportFunction === "undefined") {
    // content script shims
    window.exportFunction = () => {};
  }
} else {
  document.documentElement.classList.add("mozwebext");
}