Update indexsearch.js

This commit is contained in:
Akbar Rahman 2024-11-13 12:14:19 +00:00 committed by GitHub
parent 07ece47980
commit fa8840d25e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ function updateResults() {
console.log("updating results")
resultsDiv.innerHTML = ''
if (searchBar.value) results = fuse.search(searchBar.value, { limit: RESULTS_MAX }).map(r => r.item)
else results = data
else results = search_data
results.forEach(r => {
wrapper = document.createElement('li')