Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 44ba85d

Browse files
committed
Update CodePush.js
1 parent aa45601 commit 44ba85d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

CodePush.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,9 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg
353353
let message = null;
354354
const dialogButtons = [{
355355
text: null,
356-
onPress: async () => {
357-
try {
358-
resolve(await doDownloadAndInstall());
359-
} catch (downloadError) {
360-
reject(downloadError);
361-
}
356+
onPress:() => {
357+
doDownloadAndInstall()
358+
.then(resolve, reject);
362359
}
363360
}];
364361

0 commit comments

Comments
 (0)