diff --git a/public/js/main.js b/public/js/main.js index 47a311dc..a0ec2519 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -113,14 +113,15 @@ function resetCookies() { //only execute if cookie are supposed to be shared between nyaa & sukebei, aka on host name without subdomain var cookieValue = getCookieValue(cookieName) document.cookie = cookieName + "=;expires=Thu, 01 Jan 1970 00:00:00 UTC;" + document.cookie = cookieName + "=;path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC;" document.cookie = cookieName + "=" + cookieValue + ";path=/;expires=" + farFutureString + ";domain=" + domain - //Remove cookie and re-create it to ensure domain is correct + //Remove cookie from both current & general path, then re-create it to ensure domain is correct } continue } - if (ignoredCookies.includes(cookieName)) { + if (ignoredCookies.includes(cookieName)) continue - } + document.cookie = cookieName + "=;expires=Thu, 01 Jan 1970 00:00:00 UTC;" document.cookie = cookieName + "=;path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC;" } diff --git a/templates/site/user/edit.jet.html b/templates/site/user/edit.jet.html index 7166b379..926c596b 100644 --- a/templates/site/user/edit.jet.html +++ b/templates/site/user/edit.jet.html @@ -263,6 +263,5 @@ {{ if User.CurrentOrAdmin(UserProfile.ID) }}
{{ T("delete_account")}} - {{end}} {{end}}