From 08bf7d5cd1aa590f8110389a909a7e2c7df9f835 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 27 Nov 2021 17:45:50 +0100 Subject: Fix: Set correct mobile / Desktop threshold in JS --- js/xengineering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2