Skip to content

Commit 7642f30

Browse files
committed
bump
1 parent 8d455b5 commit 7642f30

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

apps/svelte.dev/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
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",
@@ -74,7 +74,7 @@
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",

apps/svelte.dev/src/routes/docs/[topic]/[...path]/OnThisPage.svelte

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,24 @@
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

0 commit comments

Comments
 (0)