Skip to content

Commit

Permalink
add extension to exportd files (fixed issue Jack000#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
anio authored and deece committed Jan 1, 2019
1 parent cbfa9e6 commit 2799ac0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,12 @@
console.log("No file selected");
}
else{

var fileExt = '.svg';
if (!fileName.toLowerCase().endsWith(fileExt)) {
fileName = fileName + fileExt;
}

var selected = DeepNest.nests.filter(function(n){
return n.selected;
});
Expand All @@ -1016,6 +1022,12 @@
console.log("No file selected");
}
else{

var fileExt = '.dxf';
if (!fileName.toLowerCase().endsWith(fileExt)) {
fileName = fileName + fileExt;
}

var selected = DeepNest.nests.filter(function(n){
return n.selected;
});
Expand Down

0 comments on commit 2799ac0

Please sign in to comment.