From 2959be4564d8a2bbd0c51440347f8611e5727715 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 25 Mar 2016 10:01:33 -0400 Subject: [PATCH] another check for no element --- contrib/static/mod.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/static/mod.js b/contrib/static/mod.js index 2a8a24c..f28d334 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -193,7 +193,9 @@ function nntpchan_mod(mod_action, result_elem) { elem.innerHTML = "error: HTTP "+status; } // clear input - input.value = ""; + if (input) { + input.value = ""; + } } } if (mod_action.name) {