revert: fuse.js load search index on site load
This commit is contained in:
parent
7d3987f124
commit
d5f81c0f81
1 changed files with 2 additions and 3 deletions
|
@ -59,13 +59,12 @@
|
|||
resultsElement.innerHTML = html;
|
||||
}
|
||||
|
||||
|
||||
// Initialize search when the component mounts
|
||||
initializeSearch();
|
||||
|
||||
// Add event listener for search input
|
||||
const searchInput = document.getElementById('search-input');
|
||||
searchInput.addEventListener('input', (e) => {
|
||||
// Initialize search
|
||||
initializeSearch();
|
||||
performSearch(e.target.value);
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue