From b79adf4177122c8672ff8e6a7923562804d37fec Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 4 Aug 2017 14:35:47 +0200 Subject: [PATCH] redirect to drive if logged in --- customize.dist/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/customize.dist/main.js b/customize.dist/main.js index 633f4c573..b25186e05 100644 --- a/customize.dist/main.js +++ b/customize.dist/main.js @@ -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');