mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 23:36:17 -04:00
Fix #334, Fix 331
This commit is contained in:
parent
5389464605
commit
fd11568e66
1 changed files with 2 additions and 0 deletions
|
@ -487,6 +487,8 @@ class FileDigester {
|
||||||
this._bytesReceived += chunk.byteLength || chunk.size;
|
this._bytesReceived += chunk.byteLength || chunk.size;
|
||||||
const totalChunks = this._buffer.length;
|
const totalChunks = this._buffer.length;
|
||||||
this.progress = this._bytesReceived / this._size;
|
this.progress = this._bytesReceived / this._size;
|
||||||
|
if (isNaN(this.progress)) this.progress = 1
|
||||||
|
|
||||||
if (this._bytesReceived < this._size) return;
|
if (this._bytesReceived < this._size) return;
|
||||||
// we are done
|
// we are done
|
||||||
let blob = new Blob(this._buffer, { type: this._mime });
|
let blob = new Blob(this._buffer, { type: this._mime });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue