chore: search cleanup
This commit is contained in:
parent
36f251e745
commit
4e94561713
3 changed files with 5 additions and 5 deletions
|
@ -92,7 +92,7 @@ window.addEventListener("load", () => {
|
|||
|
||||
// search logic
|
||||
(() => {
|
||||
if (!MiniSearch || !document.querySelector(".search__form--input")) return;
|
||||
if (typeof MiniSearch === "undefined") return;
|
||||
|
||||
const miniSearch = new MiniSearch({
|
||||
fields: ["title", "description", "tags", "type"],
|
||||
|
@ -296,4 +296,4 @@ window.addEventListener("load", () => {
|
|||
updateSearchResults(nextResults);
|
||||
});
|
||||
})();
|
||||
});
|
||||
});
|
||||
|
|
Reference in a new issue