No need to listen for resize as matchMedia() is used now

This commit is contained in:
the-djmaze 2023-02-23 14:35:13 +01:00
parent 57f497cf63
commit 6af13255f2
2 changed files with 1 additions and 1 deletions

View file

@ -182,7 +182,6 @@ export class AppUser extends AbstractApp {
bootstart() {
super.bootstart();
addEventListener('resize', () => leftPanelDisabled(ThemeStore.isMobile() || 1000 > innerWidth));
addEventListener('beforeunload', event => {
if (arePopupsVisible() || (ThemeStore.isMobile() && MessageUserStore.message())) {
event.preventDefault();

View file

@ -102,5 +102,6 @@ addSubscribablesTo(ThemeStore, {
isMobile.onchange = e => {
ThemeStore.isMobile(e.matches);
$htmlCL.toggle('rl-mobile', e.matches);
leftPanelDisabled(e.matches);
};
isMobile.onchange(isMobile);