0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-19 20:42:44 +00:00

Merge branch 'master' into addLocalLogin-#269

This commit is contained in:
G.Ambatte
2022-03-22 09:39:41 +13:00
committed by GitHub
7 changed files with 160 additions and 166 deletions

View File

@@ -21,6 +21,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 = '/';
};