Spaces:
Starting
Starting
Update app.py
Browse files
app.py
CHANGED
@@ -603,9 +603,9 @@ async(c, o, b, p, d, n, m)=>{
|
|
603 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].oncontextmenu = function(e){e.preventDefault();}
|
604 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].ondrag = function(e){e.preventDefault();}
|
605 |
|
606 |
-
if (o == "") {o += n;}
|
607 |
-
alert(o);
|
608 |
var o_ = o.split(",");
|
|
|
|
|
609 |
var dome = [];
|
610 |
for (var j=0; j<o_.length; j++) {
|
611 |
o_[j] = parseInt(o_[j]);
|
|
|
603 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].oncontextmenu = function(e){e.preventDefault();}
|
604 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].ondrag = function(e){e.preventDefault();}
|
605 |
|
|
|
|
|
606 |
var o_ = o.split(",");
|
607 |
+
o_.push(n);
|
608 |
+
o_.filter(function(value, index){ return o_.indexOf(value) == index });
|
609 |
var dome = [];
|
610 |
for (var j=0; j<o_.length; j++) {
|
611 |
o_[j] = parseInt(o_[j]);
|