mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
Header and platform fix
This commit is contained in:
6
dist/js/ionic-angular.js
vendored
6
dist/js/ionic-angular.js
vendored
@ -24219,7 +24219,7 @@ angular.module('ionic.service.platform', [])
|
||||
|
||||
var isReady = function() {
|
||||
if(platform == 'cordova') {
|
||||
return window.device;
|
||||
return window.device || window.Cordova;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
@ -25537,6 +25537,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();
|
||||
|
||||
@ -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