# HG changeset patch # User Nicholas Jillings # Date 1433240663 -3600 # Node ID 59a8370a2e9702fc847a790dc6c7dc06633de284 # Parent cd5e9144ecb78bcbd22dae48bcba65b23fdeafd0 Merge from the default branch diff -r cd5e9144ecb7 -r 59a8370a2e97 core.js --- a/core.js Mon Jun 01 15:26:58 2015 +0100 +++ b/core.js Tue Jun 02 11:24:23 2015 +0100 @@ -378,10 +378,13 @@ console.log('Error saving file to server! Presenting download locally'); createProjectSave(null); }; + xmlhttp.onreadystatechange = function() { + console.log(xmlhttp.status); + if (xmlhttp.status != 200 && xmlhttp.readyState == 4) { + createProjectSave(null); + } + }; xmlhttp.send(file); - if (xmlhttp.status == 404) { - createProjectSave(null); - } } return submitDiv; }