From 156e697042480748b2a31b22e464fe6dd3794d4a Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 9 Mar 2022 14:17:12 +1300 Subject: [PATCH] Initial pass: reset divider position on log out --- client/homebrew/navbar/account.navitem.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/homebrew/navbar/account.navitem.jsx b/client/homebrew/navbar/account.navitem.jsx index 004685a13..ebff531b6 100644 --- a/client/homebrew/navbar/account.navitem.jsx +++ b/client/homebrew/navbar/account.navitem.jsx @@ -20,6 +20,9 @@ const Account = createClass({ handleLogout : function(){ if(confirm('Are you sure you want to log out?')) { + // Reset divider position + window.localStorage.removeItem('naturalcrit-pane-split'); + // Clear login cookie document.cookie = `nc_session=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;samesite=lax;${window.domain ? `domain=${window.domain}` : ''}`; window.location = '/'; };