summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/_index.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/_index.md b/content/_index.md
index 53c9e99..073f4f3 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -27,7 +27,7 @@ document.addEventListener('DOMContentLoaded', () => {
// for each recipe hide all but matched
let matchCount = 0;
rec.forEach(el => {
- const recipeName = el.innerText.toLowerCase()
+ const recipeName = el.textContent.toLowerCase()
const isMatch = recipeName.includes(searchText)
el.hidden = !isMatch