Skip to content

Commit 34abcb2

Browse files
committed
fix: small playground bug
1 parent eaf8973 commit 34abcb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sites/svelte-5-preview/src/lib/Output/Viewer.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@
246246
function clear_logs() {
247247
current_log_group = logs = [];
248248
}
249+
250+
$: src = BROWSER ? srcdoc : '';
249251
</script>
250252
251253
<div class="iframe-container">
@@ -266,7 +268,7 @@
266268
relaxed ? 'allow-same-origin' : ''
267269
].join(' ')}
268270
class={error || pending || pending_imports ? 'greyed-out' : ''}
269-
srcdoc={BROWSER ? srcdoc : ''}
271+
srcdoc={src}
270272
></iframe>
271273
272274
{#if $bundle?.error}

0 commit comments

Comments
 (0)