mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 08:52:15 -05:00
[WO-656] fix logout in chrome app
This commit is contained in:
parent
f9b1c66932
commit
f380db4e1d
@ -197,8 +197,13 @@ ctrl.logout = function() {
|
||||
return;
|
||||
}
|
||||
|
||||
// navigate to login
|
||||
window.location.href = '/';
|
||||
if (typeof window.chrome !== 'undefined' && chrome.runtime && chrome.runtime.reload) {
|
||||
// reload chrome app
|
||||
chrome.runtime.reload();
|
||||
} else {
|
||||
// navigate to login
|
||||
window.location.href = '/';
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
@ -268,4 +273,4 @@ ctrl.onConnect = function(callback) {
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = ctrl;
|
||||
module.exports = ctrl;
|
Loading…
Reference in New Issue
Block a user