add a return

pull/1/head
ansuz 7 years ago
parent b79adf4177
commit 96b12d55fb

@ -27,6 +27,7 @@ define([
if (Cryptpad.isLoggedIn()) {
if (window.location.pathname === '/') {
window.location = '/drive/';
return;
}
var name = localStorage[Cryptpad.userNameKey] || sessionStorage[Cryptpad.userNameKey];

Loading…
Cancel
Save