Currently the button to close the search results is not working. Clicking the button produces this error to the console:
Uncaught ReferenceError: closeSearch is not defined at HTMLButtonElement.onclick
I think the issue is that the closeSearch function is located inside the "main" function in the lunr-client.js file. Moving closeSearch to the end of the file makes it work.
Currently the button to close the search results is not working. Clicking the button produces this error to the console:
Uncaught ReferenceError: closeSearch is not defined at HTMLButtonElement.onclick
I think the issue is that the
closeSearch
function is located inside the "main" function in the lunr-client.js file. MovingcloseSearch
to the end of the file makes it work.