summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-05-26 20:01:39 -0400
committerLuke Smith <luke@lukesmith.xyz>2022-05-26 20:01:39 -0400
commit95133388ea1096aabb84b629037f04983f80ff07 (patch)
tree7ff6375a187c02e7baa548d269cbb637537d9127
parentb7f117cf4c59c0360156de16c2ba1c1ebd5602f0 (diff)
textContent replaces innerText
-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