chore: search cleanup

This commit is contained in:
Cory Dransfeldt 2024-10-19 20:13:12 -07:00
parent 36f251e745
commit 4e94561713
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -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);
});
})();
});
});