# HG changeset patch # User Nicholas Jillings # Date 1433240663 -3600 # Node ID f0fb39c61967b0488bb705ff73f2547891d04ed6 # Parent 2799bb693f707ae5a4eef7cf4a77c4255bf144bc# Parent 826dfaa860d136664b0b67f1f3002dc59ec9dfb6 Merge from the default branch diff -r 2799bb693f70 -r f0fb39c61967 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; }