0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 08:22:42 +00:00

Switch from innerText to textContent

This commit is contained in:
G.Ambatte
2025-01-03 11:53:29 +13:00
parent 4a4a14b2ab
commit bbf6c3589a

View File

@@ -36,14 +36,14 @@ const HeaderNav = React.forwardRef(({}, pagesRef)=>{
if(el.localName.match(/^h[1-6]/)){
navList.push({
depth : el.localName[1],
text : el.innerText,
text : el.textContent,
link : el.id
});
return;
}
navList.push({
depth : 7,
text : el.innerText,
text : el.textContent,
link : el.id
});
});