Skip to content

Commit b74098e

Browse files
committed
Make animateWorld work without sandbox code
1 parent 81f4233 commit b74098e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

html/js/animateworld.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
function Animated(world) {
99
this.world = world;
10-
var outer = __sandbox.output.div, doc = outer.ownerDocument;
10+
var outer = (window.__sandbox ? window.__sandbox.output.div : document.body), doc = outer.ownerDocument;
1111
var node = outer.appendChild(doc.createElement("div"));
1212
node.style.cssText = "position: relative; width: intrinsic; width: fit-content;";
1313
this.pre = node.appendChild(doc.createElement("pre"));

0 commit comments

Comments
 (0)