add a return

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

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

Loading…
Cancel
Save