freealise commited on
Commit
eeeb986
1 Parent(s): 78e086c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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]);