mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
platform detect updates
This commit is contained in:
10
js/ext/angular/src/service/ionicPlatform.js
vendored
10
js/ext/angular/src/service/ionicPlatform.js
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user