Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2973:2d39ee05a5dc
#262 SessionKey refactoring typo
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 12 Jan 2018 13:23:44 +0000 |
parents | 1ba905b737aa |
children | c2003d6716f8 |
comparison
equal
deleted
inserted
replaced
2972:1ba905b737aa | 2973:2d39ee05a5dc |
---|---|
3661 var clone = parent.root.cloneNode(true); | 3661 var clone = parent.root.cloneNode(true); |
3662 hold.appendChild(clone); | 3662 hold.appendChild(clone); |
3663 return new Promise(function (resolve, reject) { | 3663 return new Promise(function (resolve, reject) { |
3664 // Do the usual XHR stuff | 3664 // Do the usual XHR stuff |
3665 var req = new XMLHttpRequest(); | 3665 var req = new XMLHttpRequest(); |
3666 req.open("POST", returnURL + "php/save.php?key=" + key + "&saveFilenamePrefix=" + parent.filenamePrefix); | 3666 req.open("POST", returnURL + "php/save.php?key=" + sessionKey + "&saveFilenamePrefix=" + parent.filenamePrefix); |
3667 req.setRequestHeader('Content-Type', 'text/xml'); | 3667 req.setRequestHeader('Content-Type', 'text/xml'); |
3668 | 3668 |
3669 req.onload = function () { | 3669 req.onload = function () { |
3670 // This is called even on 404 etc | 3670 // This is called even on 404 etc |
3671 // so check the status | 3671 // so check the status |