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() {
|
bootstart() {
|
||||||
super.bootstart();
|
super.bootstart();
|
||||||
|
|
||||||
addEventListener('resize', () => leftPanelDisabled(ThemeStore.isMobile() || 1000 > innerWidth));
|
|
||||||
addEventListener('beforeunload', event => {
|
addEventListener('beforeunload', event => {
|
||||||
if (arePopupsVisible() || (ThemeStore.isMobile() && MessageUserStore.message())) {
|
if (arePopupsVisible() || (ThemeStore.isMobile() && MessageUserStore.message())) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
@ -102,5 +102,6 @@ addSubscribablesTo(ThemeStore, {
|
||||||
isMobile.onchange = e => {
|
isMobile.onchange = e => {
|
||||||
ThemeStore.isMobile(e.matches);
|
ThemeStore.isMobile(e.matches);
|
||||||
$htmlCL.toggle('rl-mobile', e.matches);
|
$htmlCL.toggle('rl-mobile', e.matches);
|
||||||
|
leftPanelDisabled(e.matches);
|
||||||
};
|
};
|
||||||
isMobile.onchange(isMobile);
|
isMobile.onchange(isMobile);
|
||||||
|
|
Loading…
Reference in a new issue