From e6af4b07c12156f67497917990a21070072e8bf6 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 29 Feb 2020 19:03:39 +0100 Subject: Minor adjustments for Firefox Preview (Fenix) compatibility. --- src/lib/UA.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib') 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, }; } -- cgit v1.2.3