Archived
1
0

add check for mod feed page, feeds page does not have nntpchan_mod_target element

This commit is contained in:
Jeff Becker 2016-03-25 09:57:38 -04:00
parent af02424d20
commit 62e59d4201
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -146,7 +146,10 @@ function nntpchan_mod(mod_action, result_elem) {
// get the element // get the element
var input = document.getElementById("nntpchan_mod_target"); var input = document.getElementById("nntpchan_mod_target");
var target = input.value; var target = null;
if (input) {
target = input.value;
}
if (mod_action.parser) { if (mod_action.parser) {
target = mod_action.parser(target); target = mod_action.parser(target);
} }