Skip to content

Commit bb9515e

Browse files
committed
Fix code sandbox when HTML output is used
1 parent 5e06d28 commit bb9515e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

html/js/code.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ addEventListener("load", function() {
171171
sandbox = new SandBox({
172172
loadFiles: hasIncludes(val, context.include) ? [] : context.include,
173173
place: type == "html" &&
174-
function(node) { outnode.parentNode.insertBefore(node, outnode); }
174+
function(node) {
175+
var out = document.querySelector(".sandbox-output");
176+
out.parentNode.insertBefore(node, out);
177+
}
175178
}, function(box) {
176179
output.clear();
177180
if (type == "html")

0 commit comments

Comments
 (0)