Skip to content

Commit 36bf931

Browse files
committed
chore(site): fix top app bar iframe demos
1 parent de9901e commit 36bf931

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/routes/_layout.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<svelte:window on:resize={setMiniWindow} />
2-
{#if $page.path.startsWith('/demo/top-app-bar-iframe')}
2+
{#if iframe}
33
<slot></slot>
44
{:else}
55
<TopAppBar variant="static" class="demo-top-app-bar">
@@ -77,6 +77,7 @@
7777
import A from '@smui/common/A.svelte';
7878
7979
const {page} = stores();
80+
const iframe = $page.path.startsWith('/demo/top-app-bar-iframe');
8081
8182
let mainContent;
8283
let miniWindow = false;

0 commit comments

Comments
 (0)