From a61991fcdb059995e6b5f3566637cb44357d6c45 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 1 Apr 2019 08:35:22 +1300 Subject: [PATCH] custom.js: prevent null.trim error resolves #5000 --- src/Jackett.Common/Content/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jackett.Common/Content/custom.js b/src/Jackett.Common/Content/custom.js index 295b960d2..a56798638 100644 --- a/src/Jackett.Common/Content/custom.js +++ b/src/Jackett.Common/Content/custom.js @@ -1229,7 +1229,7 @@ function bindUIButtons() { } function proxyWarning(input) { - if (input.trim() != "") + if (input && input.trim() != "") $('#proxy-warning').show(); else $('#proxy-warning').hide();