Improve and cleanup isMobile

This commit is contained in:
djmaze 2021-02-15 16:05:38 +01:00
parent 10f9ce39d9
commit b1c7bd2c50
15 changed files with 27 additions and 43 deletions

View file

@ -1,6 +1,6 @@
import ko from 'ko';
import { doc, $htmlCL/*, isMobile*/ } from 'Common/Globals';
import { doc, $htmlCL } from 'Common/Globals';
import { isNonEmptyArray } from 'Common/Utils';
let currentScreen = null,
@ -9,7 +9,6 @@ let currentScreen = null,
const SCREENS = {},
autofocus = dom => {
// if (!isMobile()) {
const af = dom.querySelector('[autofocus]');
af && af.focus();
};