mirror of
https://github.com/searxng/searxng.git
synced 2025-12-25 13:10:01 +00:00
[fix] searx.js null pointer exception when category div is missing
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user