mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-07 08:55:33 +02:00
fix: ensure length is treated as a number when starting progress bar
This commit is contained in:
parent
e6da4e31f8
commit
1bc5e4772e
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ export async function downloadFileToLocation(
|
||||||
})
|
})
|
||||||
: process.stdout,
|
: process.stdout,
|
||||||
})
|
})
|
||||||
progressBar.start(length, receivedBytes)
|
progressBar.start(length as number, receivedBytes)
|
||||||
|
|
||||||
data.on('data', (chunk: { length: number }) => {
|
data.on('data', (chunk: { length: number }) => {
|
||||||
receivedBytes += chunk.length
|
receivedBytes += chunk.length
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue