[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
1 changed files with 8 additions and 3 deletions

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;