diff options
author | Luke Smith <luke@lukesmith.xyz> | 2022-05-26 20:01:39 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2022-05-26 20:01:39 -0400 |
commit | 95133388ea1096aabb84b629037f04983f80ff07 (patch) | |
tree | 7ff6375a187c02e7baa548d269cbb637537d9127 /content/_index.md | |
parent | b7f117cf4c59c0360156de16c2ba1c1ebd5602f0 (diff) |
textContent replaces innerText
Diffstat (limited to 'content/_index.md')
-rw-r--r-- | content/_index.md | 2 |
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 |