mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
Header and platform fix
This commit is contained in:
@ -260,6 +260,10 @@ angular.module('ionic.ui.navRouter', [])
|
||||
var oldTitle = $scope.currentTitle;
|
||||
$scope.oldTitle = oldTitle;
|
||||
|
||||
if(typeof data.title !== 'undefined') {
|
||||
$scope.currentTitle = data.title;
|
||||
}
|
||||
|
||||
if(data.animate !== false && typeof data.title !== 'undefined') {
|
||||
animate($scope, $element, oldTitle, data, function() {
|
||||
hb.align();
|
||||
|
||||
2
js/ext/angular/src/service/ionicPlatform.js
vendored
2
js/ext/angular/src/service/ionicPlatform.js
vendored
@ -20,7 +20,7 @@ angular.module('ionic.service.platform', [])
|
||||
|
||||
var isReady = function() {
|
||||
if(platform == 'cordova') {
|
||||
return window.device;
|
||||
return window.device || window.Cordova;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user