Use the mobile-launch-screen package in todos

The example doesn't "flash" with the white page on mobile when launched.
This commit is contained in:
Slava Kim
2014-10-11 03:32:04 -07:00
parent a39f6bb35e
commit 21411b4114
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
if (Meteor.isCordova) {
LaunchScreen.controlManually = true;
}

View File

@@ -31,6 +31,11 @@ Router.map(function() {
}, },
data: function() { data: function() {
return Lists.findOne(this.params._id); return Lists.findOne(this.params._id);
},
action: function () {
this.render();
if (Meteor.isCordova)
LaunchScreen.hide();
} }
}); });
@@ -45,4 +50,4 @@ Router.map(function() {
if (Meteor.isClient) { if (Meteor.isClient) {
Router.onBeforeAction('loading', {except: ['join', 'signin']}); Router.onBeforeAction('loading', {except: ['join', 'signin']});
Router.onBeforeAction('dataNotFound', {except: ['join', 'signin']}); Router.onBeforeAction('dataNotFound', {except: ['join', 'signin']});
} }