forked from Ponysearch/Ponysearch
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
5 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
@ -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() {
|
||||
|
|
2
searx/static/themes/simple/js/searx.min.js
vendored
2
searx/static/themes/simple/js/searx.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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 a new issue