mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
18 lines
460 B
JavaScript
18 lines
460 B
JavaScript
if (Meteor.isClient) {
|
|
if (Meteor.isCordova) {
|
|
Meteor.startup(() => {
|
|
WebAppLocalServer.onError((e) => {
|
|
console.log("hot code push result: " + e.message)
|
|
});
|
|
|
|
WebAppLocalServer.onNewVersionReady(() => {
|
|
WebAppLocalServer.switchToPendingVersion(() => {
|
|
console.log("hot code push result: " + "app updated to new version");
|
|
});
|
|
});
|
|
|
|
WebAppLocalServer.checkForUpdates();
|
|
});
|
|
}
|
|
}
|