diff --git a/www/js/platform.js b/www/js/platform.js index 080a837272d5b296e3b161d78d4073134ed21200..cd26df7b1e3279974c936b97d2c8e62e0b631a56 100644 --- a/www/js/platform.js +++ b/www/js/platform.js @@ -271,12 +271,6 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services'] // Start settings csSettings.ready() - .then(function(settingsData) { - // Applying UI effects, if now already disable (e.g. because of poor platform grade) - if (UIUtils.motion.enable) { - UIUtils.setEffects(settingsData.uiEffects); - } - }) ])) // Load BMA @@ -422,9 +416,16 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services'] ionic.Platform.exitApp(); }); }, 100); - - // Make sure platform is started - return csPlatform.ready(); + }) + // Make sure platform is started + .then(csPlatform.ready) + + // Applying some settings + .then(function(){ + // Applying UI effects, if now already disable (e.g. because of poor platform grade) + if (UIUtils.motion.enable) { + UIUtils.setEffects($rootScope.settings.uiEffects); + } }); }) ;