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 2 additions and 2 deletions

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

Binary file not shown.

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