Merge branch 'master' of github.com:mozilla/send into frontend_tests

This commit is contained in:
Abhinav Adduri 2017-07-17 16:04:10 -07:00
commit b88cf22d8a
29 changed files with 1277 additions and 476 deletions

View file

@ -13,10 +13,7 @@ class FileReceiver extends EventEmitter {
xhr.onprogress = event => {
if (event.lengthComputable && event.target.status !== 404) {
const percentComplete = Math.floor(
event.loaded / event.total * 100
);
this.emit('progress', percentComplete);
this.emit('progress', [event.loaded, event.total]);
}
};