Skip to content

Commit 04511f0

Browse files
committed
Rename noscroll to noScroll
1 parent 797e92d commit 04511f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/[...lang]/+layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
1818
function setLocale(code) {
1919
if ($page.url.pathname === '/') {
20-
goto('/' + code, { noscroll: true });
20+
goto('/' + code, { noScroll: true });
2121
} else {
2222
let newPath = $page.url.pathname.replace(localeRegex, '/' + code + '$2');
2323
if (newPath === $page.url.pathname && !localeRegex.exec($page.url.pathname)) {
2424
newPath = `/${code}${$page.url.pathname}`
2525
}
26-
goto(newPath, { noscroll: true })
26+
goto(newPath, { noScroll: true })
2727
}
2828
}
2929
</script>

0 commit comments

Comments
 (0)