Skip to content

Commit 6fdcdb8

Browse files
authored
Update preview.tsx
1 parent 5d4dae5 commit 6fdcdb8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/solid-repl/src/components/preview.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ const generateHTML = (isDark: boolean, importMap: string) => `
7373
const next = () => {
7474
window.dispose?.();
7575
window.dispose = undefined;
76-
77-
document.getElementById('app').innerHTML = "";
76+
77+
if(document.getElementById('app'))
78+
document.getElementById('app').innerHTML = "";
7879
7980
console.clear();
8081

0 commit comments

Comments
 (0)