1
0
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:
Tankred Hase 2014-10-22 17:22:18 +02:00
parent f9b1c66932
commit f380db4e1d

View File

@ -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;