# HG changeset patch # User Nicholas Jillings # Date 1479388080 0 # Node ID fff464febd56c5c2e7ef4c07b12c6784ec52ac3f # Parent 756d12f5c33025ee70ecc1d7aeb3ac512f678529# Parent c821dc2e26f58af87879e6c3184314ae1daf14df Merge branch 'master' into vnext diff -r 756d12f5c330 -r fff464febd56 README.md --- a/README.md Mon Nov 14 16:21:42 2016 +0000 +++ b/README.md Thu Nov 17 13:08:00 2016 +0000 @@ -28,11 +28,9 @@ As Microsoft Internet Explorer [does not support the Web Audio API](http://caniuse.com/#feat=audio-api), you will need another browser like Firefox, Chrome, Edge or Safari. -## Academic use +## Citing -### Citing - -Please cite +When using the Web Audio Evaluation Tool, please acknowledge the authors and cite > Nicholas Jillings, Brecht De Man, David Moffat and Joshua D. Reiss, "[Web Audio Evaluation Tool: A Browser-Based Listening Test Environment](http://www.brechtdeman.com/publications/smc10.pdf)," [12th Sound and Music Computing Conference](http://www.maynoothuniversity.ie/smc15/), July 2015. @@ -45,11 +43,8 @@ Title = {Web {A}udio {E}valuation {T}ool: {A} browser-based listening test environment}, Year = {2015}} -### License +## License Please refer to LICENSE.txt ([GNU General Public License](http://www.gnu.org/licenses/gpl-3.0.en.html)). - -## Other use - -Other licensing schemes are available - please contact the authors regarding non-academic use. +If you wish to use elements of the Web Audio Evaluation Tool as part of a commercial product, please contact us for a commercial license. diff -r 756d12f5c330 -r fff464febd56 js/core.js --- a/js/core.js Mon Nov 14 16:21:42 2016 +0000 +++ b/js/core.js Thu Nov 17 13:08:00 2016 +0000 @@ -488,8 +488,8 @@ } else { var parser = new DOMParser(); var xmlDoc = parser.parseFromString(xmlhttp.responseText, "application/xml"); - var response = xmlDoc.getElementsByTagName('response')[0]; - if (response.getAttribute("state") == "OK") { + var response = xmlDoc.firstElementChild; + if (response.nodeName == "response" && response.getAttribute("state") == "OK") { window.onbeforeunload = undefined; var file = response.getElementsByTagName("file")[0]; console.log("Save: OK, written " + file.getAttribute("bytes") + "B");