0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 00:52:48 +00:00

Update tableOfContents.gen.js

This commit is contained in:
Trevor Buckner
2024-09-09 11:11:40 -04:00
committed by GitHub
parent bfcb904ab7
commit 2284f15876

View File

@@ -45,6 +45,7 @@ const recursiveAdd = (title, page, actualPage, targetDepth, child, curDepth=0)=>
}
};
const getTOC = ()=>{
const pageMap = [];
const entries = [];
@@ -57,7 +58,6 @@ const getTOC = ()=>{
mapPages(iframeDocument, pageMap);
_.each(headings, (heading)=>{
const pageAnchor = heading.closest('.page').id;
const onPage = parseInt(heading.closest('.page').id?.replace(/^p/, ''));
const ToCExclude = getComputedStyle(heading).getPropertyValue('--TOC');