mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
Prevent logout loop on error
This commit is contained in:
parent
6d477aa6ec
commit
6ad92b9efd
1 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,9 @@ export class AppUser extends AbstractApp {
|
|||
}
|
||||
|
||||
logout() {
|
||||
Remote.request('Logout', () => rl.logoutReload(Settings.app('customLogoutLink')));
|
||||
Remote.request('Logout', (iError, data) =>
|
||||
iError ? alert(data) : rl.logoutReload(Settings.app('customLogoutLink'))
|
||||
);
|
||||
}
|
||||
|
||||
bootstart() {
|
||||
|
|
Loading…
Reference in a new issue