debug: emit on timeout

This commit is contained in:
Ifedapo Olarewaju 2017-02-19 02:35:20 +01:00
parent 04109b6847
commit 2bdad34ebf
2 changed files with 8 additions and 8 deletions

View file

@ -223,8 +223,6 @@ class Uppy {
totalProgress: totalProgress,
files: updatedFiles
})
console.log(this.getState().totalProgress)
}
/**

View file

@ -193,12 +193,14 @@ module.exports = class Tus10 extends Plugin {
this.core.log(`Upload progress: ${progress}`)
console.log(file.id)
this.core.emitter.emit('core:upload-progress', {
uploader: this,
id: file.id,
bytesUploaded: bytesUploaded,
bytesTotal: bytesTotal
})
setTimeout(() => {
this.core.emitter.emit('core:upload-progress', {
uploader: this,
id: file.id,
bytesUploaded: bytesUploaded,
bytesTotal: bytesTotal
})
}, 100)
}
})