zenno: use data from api
This commit is contained in:
@@ -20,13 +20,13 @@
|
||||
tocViewed = true;
|
||||
obs.disconnect();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$effect(() => {
|
||||
if (tocElem == null) {
|
||||
return;
|
||||
}
|
||||
const obs = new IntersectionObserver(observeTOC, {rootMargin: "20% 0px"});
|
||||
const obs = new IntersectionObserver(observeTOC, { rootMargin: '20% 0px' });
|
||||
obs.observe(tocElem);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user