commento.js: preserve login button on failed oauth logins

This commit is contained in:
Adhityaa Chandrasekar 2019-06-05 21:58:48 -07:00
parent cd8a2bbf99
commit cc00387136

View File

@ -1395,7 +1395,10 @@
attrSet(loggedContainer, "style", "");
}
if (commenterTokenGet() !== "anonymous") {
remove($(ID_LOGIN));
}
if (id !== null) {
global.commentNew(id, resp.commenterToken, function() {
global.loginBoxClose();