mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-07-21 23:02:29 +00:00
search: make build and js forgiving against config errors #400
This commit is contained in:
parent
e738c3c0fd
commit
8aeb69fa56
3 changed files with 8 additions and 3 deletions
static/js
|
@ -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' ) ){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue