mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
replace javascript operators ??
and ?.
to support older browsers (see #79)
This commit is contained in:
parent
5a290718b6
commit
4e0fb89720
4 changed files with 22 additions and 8 deletions
|
@ -401,7 +401,7 @@ class Peer {
|
|||
}
|
||||
|
||||
_onFilesHeader(header) {
|
||||
if (this._requestAccepted?.header.length) {
|
||||
if (this._requestAccepted && this._requestAccepted.header.length) {
|
||||
this._lastProgress = 0;
|
||||
this._digester = new FileDigester({size: header.size, name: header.name, mime: header.mime},
|
||||
this._requestAccepted.totalSize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue