Skip to content

Commit 1e75ead

Browse files
author
Capacitor+ Bot
committed
chore: sync upstream PR ionic-team#6991 from @AndrWeisR
2 parents 4c7c126 + c8a849e commit 1e75ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/native-bridge.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,8 @@ const initBridge = (w: any): void => {
755755
this.dispatchEvent(
756756
new ProgressEvent('progress', {
757757
lengthComputable: true,
758-
loaded: nativeResponse.data.length,
759-
total: nativeResponse.data.length,
758+
loaded: nativeResponse.data == null ? 0 : nativeResponse.data.length,
759+
total: nativeResponse.data == null ? 0 : nativeResponse.data.length,
760760
}),
761761
);
762762
}

0 commit comments

Comments
 (0)