Update CodePush.js

This commit is contained in:
Geoffrey Goh
2016-06-08 10:50:56 -07:00
parent aa456010fb
commit 44ba85dab8

View File

@@ -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);
}
}];