mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
Update API and example app to match latest Cordova implementation
This commit is contained in:
@@ -69,7 +69,11 @@ function checkForUpdate() {
|
||||
return new Promise((resolve, reject) => {
|
||||
sdk.queryUpdateWithCurrentPackage(queryPackage, (err, update) => {
|
||||
if (err) return reject(err);
|
||||
resolve(extend({}, update, packageMixins.remote));
|
||||
if (update) {
|
||||
resolve(extend({}, update, packageMixins.remote));
|
||||
} else {
|
||||
resolve(update);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user