aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstoned <Tukz@gmx.de>2024-08-16 22:31:22 +0200
committerstoned <Tukz@gmx.de>2024-08-16 22:31:22 +0200
commitee56db55a90cc1f2a216b6076d88df8c0ca71053 (patch)
treed505da139437878035505bf6f3ae1529adc44a58 /webAO
parent20888d8dcffbd3e990c95b222d5f0604e9c6431b (diff)
no magic numbers
Diffstat (limited to 'webAO')
-rw-r--r--webAO/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/ui.js b/webAO/ui.js
index 144270b..62d47ef 100644
--- a/webAO/ui.js
+++ b/webAO/ui.js
@@ -147,7 +147,7 @@ const configMobile = {
}
-const isMobileDevice = window.innerWidth <= 768;
+const isMobileDevice = window.innerWidth <= window.innerHeight;
const golden = new GoldenLayout();
golden.registerComponentFactoryFunction('template', (container, componentState) => {