Reduce use of isMobile()

This commit is contained in:
the-djmaze 2023-02-23 15:43:32 +01:00
parent 6af13255f2
commit 8623bb5d60
9 changed files with 28 additions and 23 deletions

View file

@ -4,6 +4,9 @@ import { doc, $htmlCL, elementById, createElement, fireEvent } from 'Common/Glob
import { forEachObjectEntry } from 'Common/Utils';
import { i18nToNodes } from 'Common/Translator';
import { leftPanelDisabled } from 'Common/Globals';
import { ThemeStore } from 'Stores/Theme';
let
currentScreen = null,
defaultScreenName = '';
@ -151,6 +154,7 @@ const
vm.onHide?.();
destroy && vm.viewModelDom.remove();
});
ThemeStore.isMobile() && leftPanelDisabled(true);
},
/**