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:
Alexandre Flament 2021-09-22 22:09:54 +02:00 committed by GitHub
commit e63410d2f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -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

View file

@ -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() {