mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 07:32:40 +00:00
Switch from innerText to textContent
This commit is contained in:
@@ -36,14 +36,14 @@ const HeaderNav = React.forwardRef(({}, pagesRef)=>{
|
|||||||
if(el.localName.match(/^h[1-6]/)){
|
if(el.localName.match(/^h[1-6]/)){
|
||||||
navList.push({
|
navList.push({
|
||||||
depth : el.localName[1],
|
depth : el.localName[1],
|
||||||
text : el.innerText,
|
text : el.textContent,
|
||||||
link : el.id
|
link : el.id
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
navList.push({
|
navList.push({
|
||||||
depth : 7,
|
depth : 7,
|
||||||
text : el.innerText,
|
text : el.textContent,
|
||||||
link : el.id
|
link : el.id
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user