From 2ddd357a62427facb4787a92b9f4e961997c5ba2 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Fri, 18 Dec 2020 07:51:33 +0500 Subject: [PATCH] [JS] Fixed TypeError: textValue is null --- static/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/search.js b/static/search.js index daf32879..788286d8 100644 --- a/static/search.js +++ b/static/search.js @@ -36,7 +36,7 @@ function search() { } - if(textValue != null || uriValue != null) { + if(textValue != null && uriValue != null) { if(textValue.match(regexMatch) != null || uriValue.hostname.match(regexMatch) ||