Merge branch 'master' into addLocalLogin-#269

This commit is contained in:
G.Ambatte authored and GitHub committed 2022-03-22 09:39:41 +13:00
commit 57c5f28938
7 files changed
+160 -166

No files matched your search

@@ -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 = '/';
};