diff --git a/CodePush.js b/CodePush.js index 253e1c9..92190bf 100644 --- a/CodePush.js +++ b/CodePush.js @@ -353,8 +353,9 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg let message = null; const dialogButtons = [{ text: null, - onPress: async () => { - resolve(await doDownloadAndInstall()); + onPress:() => { + doDownloadAndInstall() + .then(resolve, reject); } }]; @@ -451,4 +452,4 @@ if (NativeCodePush) { log("The CodePush module doesn't appear to be properly installed. Please double-check that everything is setup correctly."); } -module.exports = CodePush; \ No newline at end of file +module.exports = CodePush;