Skip to content

Commit

Permalink
reactive titles using #key (#157)
Browse files Browse the repository at this point in the history
* reactive titles using #key

* Move #key to Title component (duh doy)
  • Loading branch information
StevenClontz authored Jun 6, 2024
1 parent 5785f14 commit 74becb7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/viewer/src/components/Shared/Title.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
</script>

<svelte:head>
{#if title}
<title>{title} | π-Base</title>
{:else}
<title>π-Base</title>
{/if}
{#key title}
{#if title}
<title>{title} | π-Base</title>
{:else}
<title>π-Base</title>
{/if}
{/key}
</svelte:head>

0 comments on commit 74becb7

Please sign in to comment.