Merge pull request #468 from mariansauter/patch-5

fixed variable error
This commit is contained in:
Josh de Leeuw 2017-09-08 09:00:08 -04:00 committed by GitHub
commit f04879770d

View File

@ -148,7 +148,7 @@ function saveData(name, data){
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('POST', 'write_data.php'); // 'write_data.php' is the path to the php file described above. xhr.open('POST', 'write_data.php'); // 'write_data.php' is the path to the php file described above.
xhr.setRequestHeader('Content-Type', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify({filename: filename, filedata: filedata})); xhr.send(JSON.stringify({filename: name, filedata: data}));
} }
// call the saveData function after the experiment is over // call the saveData function after the experiment is over