simplify logic
This commit is contained in:
parent
c8e893f57f
commit
7ba83790ab
1 changed files with 3 additions and 7 deletions
|
|
@ -1101,14 +1101,10 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
});
|
||||
|
||||
$rootScope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
|
||||
if(toState.customConfig && toState.customConfig.hideStatusBar) {
|
||||
if($window.StatusBar) {
|
||||
$window.StatusBar.hide();
|
||||
}
|
||||
if($window.StatusBar && toState.customConfig && toState.customConfig.hideStatusBar) {
|
||||
$window.StatusBar.hide();
|
||||
} else {
|
||||
if($window.StatusBar) {
|
||||
$window.StatusBar.show();
|
||||
}
|
||||
$window.StatusBar.show();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue