Print Cordova hot code push errors to browser console

This commit is contained in:
Martijn Walraven
2016-02-26 16:53:08 +01:00
parent e1a31ad237
commit 74768614b2
2 changed files with 7 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ Cordova.depends({
});
Package.onUse(function (api) {
api.use('ecmascript');
api.use(['logging', 'underscore', 'routepolicy', 'boilerplate-generator',
'webapp-hashing'], 'server');
api.use(['underscore'], 'client');
@@ -33,6 +34,7 @@ Package.onUse(function (api) {
api.export(['WebApp'], 'client');
api.addFiles('webapp_server.js', 'server');
api.addFiles('webapp_client.js', 'client');
api.addFiles('webapp_cordova.js', 'web.cordova');
});
Package.onTest(function (api) {

View File

@@ -0,0 +1,5 @@
Meteor.startup(() => {
WebAppLocalServer.onError((error) => {
console.error(error);
});
});