search: make build and js forgiving against config errors

This commit is contained in:
Sören Weber 2022-11-20 23:00:40 +01:00
parent e738c3c0fd
commit 8aeb69fa56
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 8 additions and 3 deletions
static/js

View file

@ -523,6 +523,9 @@ function printShortcutHandler( event ){
function showSearch(){
var s = document.querySelector( '#search-by' );
if( !s ){
return;
}
var b = document.querySelector( 'body' );
if( s == document.activeElement ){
if( b.classList.contains( 'sidebar-flyout' ) ){