add a return

This commit is contained in:
ansuz 2017-08-04 14:37:21 +02:00
parent b79adf4177
commit 96b12d55fb

View File

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