mirror of https://github.com/xwiki-labs/cryptpad
redirect to drive if logged in
This commit is contained in:
parent
c895d06193
commit
b79adf4177
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue