Hide the splash screen only after the plugins and page is loaded

This commit is contained in:
Slava Kim
2014-10-07 17:22:27 -07:00
parent 03a9c69451
commit 8d2fd23005
2 changed files with 7 additions and 1 deletions

View File

@@ -8,6 +8,11 @@ var ready = function() {
if (awaitingEventsCount > 0)
return;
// XXX hide the splash screen if such exists, only on mobile
if (Meteor.isCordova) {
navigator.splashscree && navigator.splashscreen.hide();
}
loaded = true;
while (queue.length)
(queue.shift())();

View File

@@ -1225,7 +1225,8 @@ var consumeControlFile = function (controlFilePath, cordovaPath) {
// set some defaults different from the Phonegap/Cordova defaults
var additionalConfiguration = {
'webviewbounce': false,
'DisallowOverscroll': true
'DisallowOverscroll': true,
'AutoHideSplashScreen': false
};
var imagePaths = {
icon: {},