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