mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 21:07:46 +00:00
Update table-of-contents.svelte
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
|
|
||||||
const backToTop = () => {
|
const backToTop = () => {
|
||||||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
window.scrollTo({ top: 0 });
|
||||||
};
|
};
|
||||||
|
|
||||||
export let toc: Array<TocItem> = [];
|
export let toc: Array<TocItem> = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user