mirror of https://github.com/searxng/searxng.git
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
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() {
|
||||
|
|
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 New Issue