Possible solution for #327 - platform detect

This commit is contained in:
Max Lynch
2014-01-12 20:46:53 -06:00
parent 3bb36d3fda
commit ddadc461c0
6 changed files with 25 additions and 9 deletions

View File

@@ -28,8 +28,8 @@ angular.module('ionic.service.platform', [])
// We need to do some stuff as soon as we know the platform,
// like adjust header margins for iOS 7, etc.
setTimeout(function afterReadyWait() {
if(isReady()) {
ionic.Platform.detect();
if(isReady() && ionic.Platform.detect()) {
return;
} else {
setTimeout(afterReadyWait, 50);
}