Skip to content
Snippets Groups Projects
Commit cd412fb9 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Preapre

parent afce8012
No related branches found
No related tags found
No related merge requests found
Pipeline #11460 failed
...@@ -271,12 +271,6 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services'] ...@@ -271,12 +271,6 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services']
// Start settings // Start settings
csSettings.ready() 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 // Load BMA
...@@ -422,9 +416,16 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services'] ...@@ -422,9 +416,16 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services']
ionic.Platform.exitApp(); ionic.Platform.exitApp();
}); });
}, 100); }, 100);
})
// Make sure platform is started // Make sure platform is started
return csPlatform.ready(); .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);
}
}); });
}) })
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment