mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-28 18:41:34 +08:00
No need to listen for resize
as matchMedia() is used now
This commit is contained in:
parent
57f497cf63
commit
6af13255f2
2 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue