mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-21 15:09:51 +00:00
Update indexsearch.js
This commit is contained in:
parent
07ece47980
commit
fa8840d25e
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user