Skip to content

Commit

Permalink
refactor: update 'sveltekit:prefetch' to 'data-sveltekit-prefetch'
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshafer committed Oct 2, 2022
1 parent daa962d commit dd62d92
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/layout/nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,31 @@
<li>
<a
class:active={$page.url.pathname == '/'}
sveltekit:prefetch
data-sveltekit-prefetch
href="/"
on:click={handleNavClose}>Home</a
>
</li>
<li>
<a
class:active={$page.url.pathname.startsWith('/about')}
sveltekit:prefetch
data-sveltekit-prefetch
href="/about"
on:click={handleNavClose}>About</a
>
</li>
<li>
<a
class:active={$page.url.pathname.startsWith('/upcoming')}
sveltekit:prefetch
data-sveltekit-prefetch
href="/upcoming"
on:click={handleNavClose}>Upcoming</a
>
</li>
<li>
<a
class:active={$page.url.pathname.startsWith('/latest')}
sveltekit:prefetch
data-sveltekit-prefetch
href="/latest"
on:click={handleNavClose}
>
Expand All @@ -64,7 +64,7 @@
<li>
<a
class:active={$page.url.pathname.startsWith('/speakers')}
sveltekit:prefetch
data-sveltekit-prefetch
href="/speakers"
on:click={handleNavClose}
>
Expand All @@ -74,7 +74,7 @@
<li>
<a
class:active={$page.url.pathname.startsWith('/streams')}
sveltekit:prefetch
data-sveltekit-prefetch
href="/streams"
on:click={handleNavClose}>Streams</a
>
Expand Down

0 comments on commit dd62d92

Please sign in to comment.