Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -640,9 +640,11 @@ async(c, o, b, p, d, n, m)=>{
|
|
640 |
}
|
641 |
} catch(e) {alert(e);}
|
642 |
} else if (BABYLON || BABYLON == null) {
|
|
|
643 |
BABYLON = null;
|
644 |
-
document.getElementById("model3D").getElementsByTagName("canvas")[0]
|
645 |
-
|
|
|
646 |
document.getElementById("iframe3D").src = "index.htm";
|
647 |
document.getElementById("iframe3D").onload = function() {
|
648 |
document.getElementById("iframe3D").contentDocument.getElementById("coords").value = c;
|
@@ -671,6 +673,7 @@ async(c, o, b, p, d, n, m)=>{
|
|
671 |
toggleDisplay("model");
|
672 |
|
673 |
clearInterval(intv);
|
|
|
674 |
}
|
675 |
}, 40);
|
676 |
}
|
|
|
640 |
}
|
641 |
} catch(e) {alert(e);}
|
642 |
} else if (BABYLON || BABYLON == null) {
|
643 |
+
try {
|
644 |
BABYLON = null;
|
645 |
+
if (document.getElementById("model3D").getElementsByTagName("canvas")[0]) {
|
646 |
+
document.getElementById("model3D").getElementsByTagName("canvas")[0].remove();
|
647 |
+
}
|
648 |
document.getElementById("iframe3D").src = "index.htm";
|
649 |
document.getElementById("iframe3D").onload = function() {
|
650 |
document.getElementById("iframe3D").contentDocument.getElementById("coords").value = c;
|
|
|
673 |
toggleDisplay("model");
|
674 |
|
675 |
clearInterval(intv);
|
676 |
+
} catch(e) {alert(e)}
|
677 |
}
|
678 |
}, 40);
|
679 |
}
|