Skip to content

Commit b481547

Browse files
css + output fix
1 parent ba3ff86 commit b481547

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.html

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
#errors {
2727
color: red;
2828
}
29+
30+
@media screen and (prefers-color-scheme: dark) {
31+
body {
32+
color: white;
33+
background: black;
34+
}
35+
}
2936
</style>
3037
<style id="custom-css"></style>
3138
</head>
@@ -96,6 +103,7 @@ <h1>Schemascii Playground</h1>
96103
output.innerHTML = await schemascii.render("playground", source.value);
97104
} catch (e) {
98105
error(`\nJS Error:\n${e.stack}\n`);
106+
output.innerHTML = "";
99107
throw e;
100108
}
101109
}, 500);

0 commit comments

Comments
 (0)