Commit 59be452f authored by Jennie Yoder's avatar Jennie Yoder

working on fixing safari stl download.

parent b6ffe877
...@@ -1859,12 +1859,7 @@ Blockscad.saveBlocksLocal = function() { ...@@ -1859,12 +1859,7 @@ Blockscad.saveBlocksLocal = function() {
// don't save without a filename. Name isn't checked for quality. // don't save without a filename. Name isn't checked for quality.
// console.log("in SaveBlocksLocal with: ", blocks_filename); // console.log("in SaveBlocksLocal with: ", blocks_filename);
if (blocks_filename) { if (blocks_filename) {
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) saveAs(blob, blocks_filename + ".xml");
{
console.log("found Safari");
saveAs(blob, blocks_filename + ".txt");
}
else saveAs(blob, blocks_filename + ".xml");
// console.log("SAVED locally: setting needToSave to 0"); // console.log("SAVED locally: setting needToSave to 0");
Blockscad.setNoSaveNeeded(); Blockscad.setNoSaveNeeded();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment