mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Some account switch reload improvements
This commit is contained in:
parent
9b0f9be23c
commit
ce413b7b7a
7 changed files with 41 additions and 37 deletions
|
|
@ -23,11 +23,9 @@ export class AbstractApp {
|
|||
this.Remote = Remote;
|
||||
}
|
||||
|
||||
logoutReload(close = false) {
|
||||
logoutReload() {
|
||||
const url = logoutLink();
|
||||
|
||||
close && window.close && window.close();
|
||||
|
||||
if (location.href !== url) {
|
||||
setTimeout(() => (Settings.app('inIframe') ? parent : window).location.href = url, 100);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -708,7 +708,7 @@ class AppUser extends AbstractApp {
|
|||
}
|
||||
|
||||
logout() {
|
||||
Remote.logout(() => rl.logoutReload(!!SettingsGet('ParentEmail')));
|
||||
Remote.logout(() => rl.logoutReload());
|
||||
}
|
||||
|
||||
bootstart() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue