better conditional

This commit is contained in:
Marty Alcala 2016-11-16 13:31:18 -05:00
commit c24d75e4eb

View file

@ -1101,10 +1101,12 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}); });
$rootScope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) { $rootScope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
if($window.StatusBar && toState.customConfig && toState.customConfig.hideStatusBar) { if($window.StatusBar) {
$window.StatusBar.hide(); if(toState.customConfig && toState.customConfig.hideStatusBar) {
} else { $window.StatusBar.hide();
$window.StatusBar.show(); } else {
$window.StatusBar.show();
}
} }
}); });
}); });