mirror of
https://github.com/searxng/searxng
synced 2024-11-09 01:10:26 +00:00
Merge pull request #337 from MrPaulBlack/fix-searxjs-null-exception
[fix] fix searx.js null pointer because of missing category div
This commit is contained in:
commit
e63410d2f4
Binary file not shown.
@ -782,7 +782,7 @@ searx.ready(function() {
|
||||
}
|
||||
|
||||
// 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() {
|
||||
|
BIN
searx/static/themes/simple/js/searx.min.js
vendored
BIN
searx/static/themes/simple/js/searx.min.js
vendored
Binary file not shown.
Binary file not shown.
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user