Update speedtest_worker.js (#27)

Fixed a typo in worker code (fetch API version)
This commit is contained in:
bjonn 2017-05-05 07:28:52 +02:00 committed by Federico Dossena
parent 98c8aa6585
commit 0dd0eeaa86
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ function dlTest(done){
return reader.read().then(function(result){
if(result.done) testStream(i); else{
totLoaded+=result.value.length;
if(xhr[i].canelRequested) reader.cancel();
if(xhr[i].cancelRequested) reader.cancel();
}
return consume();
}.bind(this));

File diff suppressed because one or more lines are too long