From 8dbeecf71e0ddb3678800e24f5d96be3e41b7f59 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 15 May 2019 09:13:56 -0700 Subject: [PATCH] commento.js: reset selfHex and state when logging out --- frontend/js/commento.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index f5a2a40..0586990 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -231,6 +231,9 @@ global.logout = function() { cookieSet("commentoCommenterToken", "anonymous"); + isAuthenticated = false; + isModerator = false; + selfHex = undefined; refreshAll(); }