From 62e59d42012a84ed3872c10f887aaefd7b5e8b63 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 25 Mar 2016 09:57:38 -0400 Subject: [PATCH] add check for mod feed page, feeds page does not have nntpchan_mod_target element --- contrib/static/mod.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/static/mod.js b/contrib/static/mod.js index a4db20b..2a8a24c 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -146,7 +146,10 @@ function nntpchan_mod(mod_action, result_elem) { // get the element var input = document.getElementById("nntpchan_mod_target"); - var target = input.value; + var target = null; + if (input) { + target = input.value; + } if (mod_action.parser) { target = mod_action.parser(target); }