mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-09 16:25:12 +03:00
lint
This commit is contained in:
@@ -13,9 +13,6 @@ 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', [event.loaded, event.total]);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user