redirect to drive if logged in

This commit is contained in:
ansuz 2017-08-04 14:35:47 +02:00
parent c895d06193
commit b79adf4177
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ define([
$main.find('#data').removeClass('hidden');
if (Cryptpad.isLoggedIn()) {
if (window.location.pathname === '/') {
window.location = '/drive/';
}
var name = localStorage[Cryptpad.userNameKey] || sessionStorage[Cryptpad.userNameKey];
var $loggedInBlock = $main.find('#loggedIn');
var $hello = $loggedInBlock.find('#loggedInHello');