Do not redirect to home page when logging out from another tab

This commit is contained in:
yflory
2017-02-08 12:54:07 +01:00
parent 702798f65a
commit 914c442615
10 changed files with 59 additions and 11 deletions

View File

@@ -176,7 +176,18 @@ define([
window.location.reload();
} else if (o && !n) {
//window.location.reload();
window.location.href = '/';
//window.location.href = '/';
$(window).on('keyup', function (e) {
if (e.keyCode === 27) {
Cryptpad.removeLoadingScreen();
}
});
Cryptpad.logout();
Cryptpad.addLoadingScreen();
Cryptpad.errorLoadingScreen(Messages.onLogout, true);
if (exp.info) {
exp.info.network.disconnect();
}
}
});