Skip to content

Commit

Permalink
fixed prerender issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jdvlpr committed Sep 20, 2024
1 parent 913090e commit c0d8196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/components/YarnWeightChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
import { ALL_YARN_WEIGHTS, yarnWeightIcons } from '$lib/constants';
import { onMount } from 'svelte';
let highlight = $page.url.searchParams.get('highlight') || null;
let highlight = null;
onMount(() => {
highlight = $page.url.searchParams.get('highlight') || null;
if (highlight) {
const el = document.getElementById(highlight);
if (el) {
Expand Down
1 change: 0 additions & 1 deletion src/routes/blog/yarn-weights/+page.js

This file was deleted.

0 comments on commit c0d8196

Please sign in to comment.