mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-27 00:36:44 +03:00
Bugfix: ask unload when mobile and message visible
This commit is contained in:
parent
470da2ee15
commit
45be0d7aa8
3 changed files with 5 additions and 7 deletions
|
|
@ -183,7 +183,7 @@ export class AppUser extends AbstractApp {
|
|||
super.bootstart();
|
||||
|
||||
addEventListener('beforeunload', event => {
|
||||
if (arePopupsVisible() || (!SettingsUserStore.layout() && MessageUserStore.message())) {
|
||||
if (arePopupsVisible() || (!SettingsUserStore.usePreviewPane() && 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