mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: fix ClientRequest.getUploadProgress (#21388)
This commit is contained in:
@@ -454,7 +454,7 @@ class ClientRequest extends Writable {
|
||||
}
|
||||
|
||||
getUploadProgress () {
|
||||
return { ...this._uploadProgress } || { active: false }
|
||||
return this._uploadProgress ? { ...this._uploadProgress } : { active: false }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user