mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-25 00:29: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")
|
console.log("updating results")
|
||||||
resultsDiv.innerHTML = ''
|
resultsDiv.innerHTML = ''
|
||||||
if (searchBar.value) results = fuse.search(searchBar.value, { limit: RESULTS_MAX }).map(r => r.item)
|
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 => {
|
results.forEach(r => {
|
||||||
wrapper = document.createElement('li')
|
wrapper = document.createElement('li')
|
||||||
|
Loading…
Reference in New Issue
Block a user