platform detect updates

This commit is contained in:
Adam Bradley
2014-01-14 00:59:25 -06:00
parent 41a7b45f0e
commit 64d8fd207a
6 changed files with 49 additions and 57 deletions

View File

@@ -27,15 +27,7 @@ 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()) {
return;
} else {
setTimeout(afterReadyWait, 50);
}
}, 10);
ionic.Platform.detect();
return {