summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/js
diff options
context:
space:
mode:
authorMrPaulBlack <paul.accounts@protonmail.com>2021-09-22 21:41:19 +0200
committerMrPaulBlack <paul.accounts@protonmail.com>2021-09-22 21:41:19 +0200
commit79351c2e4dd9377a92a412219a1550cd0aeec446 (patch)
tree3cabd925b3b1751a839030c7ec2a1072f11672e0 /searx/static/themes/simple/src/js
parent12c90a1b47356fbc3f7616d805ab9040bdaa7a10 (diff)
downloadsearxng-79351c2e4dd9377a92a412219a1550cd0aeec446.tar.gz
searxng-79351c2e4dd9377a92a412219a1550cd0aeec446.zip
[fix] searx.js null pointer exception when category div is missing
Diffstat (limited to 'searx/static/themes/simple/src/js')
-rw-r--r--searx/static/themes/simple/src/js/main/searx_search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/static/themes/simple/src/js/main/searx_search.js b/searx/static/themes/simple/src/js/main/searx_search.js
index 235262b37..c593ba6a3 100644
--- a/searx/static/themes/simple/src/js/main/searx_search.js
+++ b/searx/static/themes/simple/src/js/main/searx_search.js
@@ -96,7 +96,7 @@
}
// vanilla js version of search_on_category_select.js
- if (qinput !== null && searx.search_on_category_select) {
+ if (qinput !== null && d.querySelector('.help') != null && searx.search_on_category_select) {
d.querySelector('.help').className='invisible';
searx.on('#categories input', 'change', function() {