diff options
author | Simon Gündling <simon@localhost.localdomain> | 2015-09-11 11:18:56 +0200 |
---|---|---|
committer | Simon Gündling <simon@localhost.localdomain> | 2015-09-11 11:19:31 +0200 |
commit | 98005eeac9c1512c73300e450780df8ca932f60f (patch) | |
tree | 14afb955cd799cfa4450e074e6994391424579f9 /js | |
parent | 465d4eb08721932431da4cbea66483beed16b860 (diff) | |
download | chiptune2.js-98005eeac9c1512c73300e450780df8ca932f60f.zip chiptune2.js-98005eeac9c1512c73300e450780df8ca932f60f.tar.gz chiptune2.js-98005eeac9c1512c73300e450780df8ca932f60f.tar.bz2 |
dont check XHR response total size (fixes #14)
Diffstat (limited to 'js')
-rw-r--r-- | js/chiptune2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/chiptune2.js b/js/chiptune2.js index 1a655f8..db073a2 100644 --- a/js/chiptune2.js +++ b/js/chiptune2.js @@ -70,7 +70,7 @@ ChiptuneJsPlayer.prototype.load = function(input, callback) { xhr.open('GET', input, true); xhr.responseType = 'arraybuffer'; xhr.onload = function(e) { - if (xhr.status === 200 && e.total) { + if (xhr.status === 200) { return callback(xhr.response); // no error } else { player.fireEvent('onError', {type: 'onxhr'}); |