summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2021-11-27 17:45:50 +0100
committerxengineering <me@xengineering.eu>2021-11-27 17:45:50 +0100
commit08bf7d5cd1aa590f8110389a909a7e2c7df9f835 (patch)
treee71f794bd08a9388a36acd969d683430907895c9
parentbda3a75cfd92ddb83e9aea2ba33d56b625a4fddb (diff)
downloadlibweb-08bf7d5cd1aa590f8110389a909a7e2c7df9f835.tar
libweb-08bf7d5cd1aa590f8110389a909a7e2c7df9f835.tar.zst
libweb-08bf7d5cd1aa590f8110389a909a7e2c7df9f835.zip
Fix: Set correct mobile / Desktop threshold in JS
-rw-r--r--js/xengineering.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/xengineering.js b/js/xengineering.js
index 4f84b63..d82db88 100644
--- a/js/xengineering.js
+++ b/js/xengineering.js
@@ -30,7 +30,7 @@ const MenuState = {
var state;
// init menu state and add mediaChange handler
-var isMobile = window.matchMedia("(max-width: 767px)");
+var isMobile = window.matchMedia("(max-aspect-ratio: 14/9)");
mediaChange(isMobile);
isMobile.addListener(mediaChange)