From cd412fb9af26c03e55c348c42e6317b75871a253 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Tue, 23 Mar 2021 17:40:20 +0100 Subject: [PATCH] [fix] Preapre --- www/js/platform.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/www/js/platform.js b/www/js/platform.js index 080a83727..cd26df7b1 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); + } }); }) ; -- GitLab