fix: check

This commit is contained in:
Cory Dransfeldt 2024-09-18 09:17:41 -07:00
parent ead84a41ae
commit 870c40cb46
No known key found for this signature in database
3 changed files with 13 additions and 9 deletions

12
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "24.16.3", "version": "24.16.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "24.16.3", "version": "24.16.5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.5.0", "@cdransf/api-text": "^1.5.0",
@ -27,7 +27,7 @@
"html-entities": "^2.5.2", "html-entities": "^2.5.2",
"html-minifier-terser": "^7.2.0", "html-minifier-terser": "^7.2.0",
"html-to-text": "^9.0.5", "html-to-text": "^9.0.5",
"ics": "^3.7.6", "ics": "^3.8.0",
"luxon": "^3.5.0", "luxon": "^3.5.0",
"markdown-it": "^14.1.0", "markdown-it": "^14.1.0",
"markdown-it-anchor": "^9.2.0", "markdown-it-anchor": "^9.2.0",
@ -2469,9 +2469,9 @@
} }
}, },
"node_modules/ics": { "node_modules/ics": {
"version": "3.7.6", "version": "3.8.0",
"resolved": "https://registry.npmjs.org/ics/-/ics-3.7.6.tgz", "resolved": "https://registry.npmjs.org/ics/-/ics-3.8.0.tgz",
"integrity": "sha512-Z1QIWoPzyzqKUSj2Ui9vD3ca0AS+uHyiCjkROFx9PiKtJu9vMuMo6KJ4aqFmMAqn5q3fLq/5tLTJRm4zr9jjgw==", "integrity": "sha512-YNoIcjJ8Yh0S+wXgbJGhkjLsZR/X2vVUz9yk3M83TXh7MvOb+5ad3sGXFB4Hm2M9hYQoY+Yb4m955VhKOrdojw==",
"dev": true, "dev": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "24.16.3", "version": "24.16.5",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"scripts": { "scripts": {
@ -40,7 +40,7 @@
"html-entities": "^2.5.2", "html-entities": "^2.5.2",
"html-minifier-terser": "^7.2.0", "html-minifier-terser": "^7.2.0",
"html-to-text": "^9.0.5", "html-to-text": "^9.0.5",
"ics": "^3.7.6", "ics": "^3.8.0",
"luxon": "^3.5.0", "luxon": "^3.5.0",
"markdown-it": "^14.1.0", "markdown-it": "^14.1.0",
"markdown-it-anchor": "^9.2.0", "markdown-it-anchor": "^9.2.0",

View file

@ -35,7 +35,11 @@ permalink: /search.html
// Clear the results when input is empty // Clear the results when input is empty
renderSearchResults([]) renderSearchResults([])
} else { } else {
if (query.length > 1 && window?.umami) umami.trackEvent('Search', { query: query }) if (query.length > 1) {
try {
umami.trackEvent('Search', { query: query })
} catch (err) {}
}
renderSearchResults(results, query) renderSearchResults(results, query)
} }
}) })