We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81f4233 commit b74098eCopy full SHA for b74098e
1 file changed
html/js/animateworld.js
@@ -7,7 +7,7 @@
7
8
function Animated(world) {
9
this.world = world;
10
- var outer = __sandbox.output.div, doc = outer.ownerDocument;
+ var outer = (window.__sandbox ? window.__sandbox.output.div : document.body), doc = outer.ownerDocument;
11
var node = outer.appendChild(doc.createElement("div"));
12
node.style.cssText = "position: relative; width: intrinsic; width: fit-content;";
13
this.pre = node.appendChild(doc.createElement("pre"));
0 commit comments