Merge pull request #337 from MrPaulBlack/fix-searxjs-null-exception

[fix] fix searx.js null pointer because of missing category div
pull/344/head
Alexandre Flament 3 years ago committed by GitHub
commit e63410d2f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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…
Cancel
Save