From 995d3da58d3568d34c7a6f87223cf7e1a2c2d8e2 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Thu, 12 Nov 2015 05:05:13 -0800 Subject: [PATCH] Update the export project function to use saveXMLAs --- gui.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui.js b/gui.js index 8fd96b97..3c2afc24 100644 --- a/gui.js +++ b/gui.js @@ -3027,8 +3027,8 @@ IDE_Morph.prototype.exportProject = function (name, plain) { try { menu = this.showMessage('Exporting'); str = this.serializer.serialize(this.stage) - this.setURL('#open:' + encodeURIComponent(str)); - this.saveFileAs(str, name); + this.setURL('#open:' + dataPrefix + encodeURIComponent(str)); + this.saveXMLAs(str, name, true); menu.destroy(); this.showMessage('Exported!', 1); } catch (err) { @@ -3037,8 +3037,8 @@ IDE_Morph.prototype.exportProject = function (name, plain) { } else { menu = this.showMessage('Exporting'); str = this.serializer.serialize(this.stage) - this.setURL('#open:' + encodeURIComponent(str)); - this.saveFileAs(str, name); + this.setURL('#open:' + dataPrefix + encodeURIComponent(str)); + this.saveXMLAs(str, name); menu.destroy(); this.showMessage('Exported!', 1); }