mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-09 04:22:13 +00:00
Update table-of-contents.svelte
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
export let toc: Array<TocItem> = [];
|
export let toc: Array<TocItem> = [];
|
||||||
|
|
||||||
$: activeIndex = 0;
|
let activeIndex: number = 0;
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
const observer = new IntersectionObserver(
|
const observer = new IntersectionObserver(
|
||||||
|
|||||||
Reference in New Issue
Block a user