From a7e0b35c49e29b60e6db41100091e944ea74ddf4 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 28 Apr 2019 22:58:11 +0800 Subject: [PATCH] Set the bar higher for high-quality mode --- app.js | 3 +-- index.html | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 4d5b583..57afe63 100644 --- a/app.js +++ b/app.js @@ -14,9 +14,8 @@ for (let family in familiesSpeciesData) { } const isTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints; -const smallScreen = screen.width <= 600 || screen.height <= 600; const hqHash = /#hq/.test(location.hash); -const renderingMode = !hqHash && (isTouch && smallScreen) ? 'low' : 'high'; +const renderingMode = !hqHash && isTouch ? 'low' : 'high'; if (renderingMode === 'low') document.getElementById('rendering-mode').hidden = false; diff --git a/index.html b/index.html index b7980a1..eaa1bff 100644 --- a/index.html +++ b/index.html @@ -105,9 +105,8 @@

Explore Trees in Singapore

} const _isTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints; -const _smallScreen = screen.width <= 600 || screen.height <= 600; const _hqHash = /#hq/.test(location.hash); -const _renderingMode = !_hqHash && (_isTouch && _smallScreen) ? 'low' : 'high'; +const _renderingMode = !_hqHash && _isTouch ? 'low' : 'high'; if (_renderingMode === 'high') { document.getElementById('dummy-fetch').rel = 'preload'; }