mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Reduce use of isMobile()
This commit is contained in:
parent
6af13255f2
commit
8623bb5d60
9 changed files with 28 additions and 23 deletions
|
|
@ -183,7 +183,7 @@ export class AppUser extends AbstractApp {
|
|||
super.bootstart();
|
||||
|
||||
addEventListener('beforeunload', event => {
|
||||
if (arePopupsVisible() || (ThemeStore.isMobile() && MessageUserStore.message())) {
|
||||
if (arePopupsVisible() || (!SettingsUserStore.layout() && MessageUserStore.message())) {
|
||||
event.preventDefault();
|
||||
return event.returnValue = i18n('POPUPS_ASK/EXIT_ARE_YOU_SURE');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue