mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-27 00:36:44 +03:00
v2.2.1
This commit is contained in:
parent
3983932bc0
commit
aa05f10629
5 changed files with 29 additions and 31 deletions
|
|
@ -8,7 +8,7 @@ import {
|
|||
} from 'Common/Globals';
|
||||
|
||||
import { KeyState } from 'Common/Enums';
|
||||
import { rootAdmin, rootUser } from 'Common/Links';
|
||||
import { logoutLink } from 'Common/Links';
|
||||
import { i18nToNodes, initOnStartOrLangChange } from 'Common/Translator';
|
||||
|
||||
import { LanguageStore } from 'Stores/Language';
|
||||
|
|
@ -70,13 +70,13 @@ export class AbstractApp {
|
|||
}
|
||||
|
||||
logoutReload(close = false) {
|
||||
const logoutLink = rl.adminArea() ? rootAdmin() : rootUser();
|
||||
const url = logoutLink();
|
||||
|
||||
rl.hash.clear();
|
||||
close && window.close && window.close();
|
||||
|
||||
if (location.href !== logoutLink) {
|
||||
setTimeout(() => (Settings.app('inIframe') ? parent : window).location.href = logoutLink, 100);
|
||||
if (location.href !== url) {
|
||||
setTimeout(() => (Settings.app('inIframe') ? parent : window).location.href = url, 100);
|
||||
} else {
|
||||
rl.route.reload();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue