chore: misc cleanup

This commit is contained in:
Cory Dransfeldt 2024-08-12 14:01:39 -07:00
parent cab8b34832
commit 31b69ae565
No known key found for this signature in database
7 changed files with 32 additions and 17 deletions

View file

@ -32,6 +32,7 @@ permalink: /search.html
const query = $input.value
const results = (query.length > 1) ? getSearchResults(query) : []
if (query === '') renderSearchResults([])
if (query.length > 1 && window?.umami) umami.trackEvent('Search', { query: query })
renderSearchResults(results)
})