Do not redirect to home page when logging out from another tab
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user