From cc00387136f01bf8bcc0dd7adc649d0645d59616 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 5 Jun 2019 21:58:48 -0700 Subject: [PATCH] commento.js: preserve login button on failed oauth logins --- frontend/js/commento.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index b17ed2c..1ccde22 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -1395,7 +1395,10 @@ attrSet(loggedContainer, "style", ""); } - remove($(ID_LOGIN)); + if (commenterTokenGet() !== "anonymous") { + remove($(ID_LOGIN)); + } + if (id !== null) { global.commentNew(id, resp.commenterToken, function() { global.loginBoxClose();