mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-13 11:54:33 +00:00
demo progress report fix
This commit is contained in:
@@ -64,7 +64,7 @@ export class Session extends BaseSession {
|
|||||||
}, 2000)
|
}, 2000)
|
||||||
})
|
})
|
||||||
this.vm.add_listener('download-progress', (e) => {
|
this.vm.add_listener('download-progress', (e) => {
|
||||||
this.emitMessage(`\rDownloading ${path.basename(e.file_name)}: ${e.loaded / 1024}/${e.total / 1024} kB `)
|
this.emitMessage(`\rDownloading ${path.basename(e.file_name)}: ${Math.floor(e.loaded / 1024)}/${Math.floor(e.total / 1024)} kB `)
|
||||||
})
|
})
|
||||||
this.vm.add_listener('download-error', (e) => {
|
this.vm.add_listener('download-error', (e) => {
|
||||||
this.emitMessage(`\r\nDownload error: ${e}\r\n`)
|
this.emitMessage(`\r\nDownload error: ${e}\r\n`)
|
||||||
|
Reference in New Issue
Block a user