From 44ba85dab86d1de67539bf5338dfcfd5427f7ed5 Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Wed, 8 Jun 2016 10:50:56 -0700 Subject: [PATCH] Update CodePush.js --- CodePush.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/CodePush.js b/CodePush.js index 72aa6e1..92190bf 100644 --- a/CodePush.js +++ b/CodePush.js @@ -353,12 +353,9 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg let message = null; const dialogButtons = [{ text: null, - onPress: async () => { - try { - resolve(await doDownloadAndInstall()); - } catch (downloadError) { - reject(downloadError); - } + onPress:() => { + doDownloadAndInstall() + .then(resolve, reject); } }];