mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-26 08:16:44 +03:00
Ignore popups on logoutReload()
This commit is contained in:
parent
986b3a79f1
commit
e07749be6a
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,8 @@ import ko from 'ko';
|
|||
import { logoutLink } from 'Common/Links';
|
||||
import { i18nToNodes, initOnStartOrLangChange } from 'Common/Translator';
|
||||
|
||||
import { arePopupsVisible } from 'Knoin/Knoin';
|
||||
|
||||
import { LanguageStore } from 'Stores/Language';
|
||||
import { initThemes } from 'Stores/Theme';
|
||||
|
||||
|
|
@ -18,6 +20,7 @@ export class AbstractApp {
|
|||
}
|
||||
|
||||
logoutReload(url) {
|
||||
arePopupsVisible(false);
|
||||
url = url || logoutLink();
|
||||
if (location.href !== url) {
|
||||
setTimeout(() => location.href = url, 100);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue