1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 17:02:17 -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; return;
} }
if (typeof window.chrome !== 'undefined' && chrome.runtime && chrome.runtime.reload) {
// reload chrome app
chrome.runtime.reload();
} else {
// navigate to login // navigate to login
window.location.href = '/'; window.location.href = '/';
}
}); });
}); });
}; };