File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
src/routes/docs/[topic]/[...path] Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 5454 "@supabase/supabase-js" : " ^2.43.4" ,
5555 "@sveltejs/adapter-vercel" : " ^5.10.2" ,
5656 "@sveltejs/enhanced-img" : " ^0.8.1" ,
57- "@sveltejs/kit" : " ^2.48.0 " ,
57+ "@sveltejs/kit" : " ^2.48.3 " ,
5858 "@sveltejs/site-kit" : " workspace:*" ,
5959 "@sveltejs/vite-plugin-svelte" : " ^6.1.3" ,
6060 "@types/cookie" : " ^0.6.0" ,
7474 "satori" : " ^0.10.13" ,
7575 "satori-html" : " ^0.3.2" ,
7676 "sv" : " ^0.9.2" ,
77- "svelte" : " ^5.42 .1" ,
77+ "svelte" : " ^5.43 .1" ,
7878 "svelte-check" : " ^4.3.1" ,
7979 "svelte-preprocess" : " ^6.0.3" ,
8080 "tiny-glob" : " ^0.2.9" ,
Original file line number Diff line number Diff line change 88 let current = $state (' ' );
99
1010 afterNavigate (() => {
11+ if (! content ) {
12+ // TODO bind:this is broken?
13+ console .error (' missing content' );
14+ return ;
15+ }
16+
1117 current = location .hash .slice (1 );
1218 headings = content .querySelectorAll (' h2' );
1319 update (); // Ensure active link is set correctly on navigation
1420 });
1521
1622 // Update function to activate the correct section link
1723 function update() {
24+ if (! headings ) {
25+ // TODO bind:this is broken?
26+ return ;
27+ }
28+
1829 const threshold = (innerHeight * 1 ) / 3 ;
1930 let found = false ;
2031
You can’t perform that action at this time.
0 commit comments