From 2a4b5d768a710e6a9c00c1c26278c9d4a62e449e Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 26 Oct 2018 07:36:27 -0400 Subject: [PATCH] i hate js --- contrib/static/overchan.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/contrib/static/overchan.js b/contrib/static/overchan.js index 5c22aff..f274d2b 100644 --- a/contrib/static/overchan.js +++ b/contrib/static/overchan.js @@ -19,14 +19,10 @@ var nntpchan_mod_delete = function(longhash) { { // success (?) var j = JSON.parse(ajax.responseText); - if(j.deleted && j.deleted.length > 0) + if(j.deleted.length > 0) { elem.appendChild(document.createTextNode(j.deleted.join(","))); } - else (j.error) - { - elem.innerHTML = "an error occured: " + j.error ; - } } else {