redirect to drive if logged in

pull/1/head
ansuz 7 years ago
parent c895d06193
commit b79adf4177

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

Loading…
Cancel
Save