summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/UA.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/UA.js b/src/lib/UA.js
index f679f95..57e98ae 100644
--- a/src/lib/UA.js
+++ b/src/lib/UA.js
@@ -1,10 +1,12 @@
{
let mozWebExtUrl = document.URL.startsWith("moz-");
let isMozilla = mozWebExtUrl || typeof window.wrappedJSObject === "object";
+ let mobile = false;
if (isMozilla) {
if (mozWebExtUrl) {
// help browser-specific UI styling
document.documentElement.classList.add("mozwebext");
+ mobile = !("windows" in browser);
}
} else {
// shims for non-Mozilla browsers
@@ -14,6 +16,7 @@
}
var UA = {
- isMozilla
+ isMozilla,
+ mobile,
};
}