fix(desktop): fix error if StatusBar is not available
This commit is contained in:
parent
ec343e4991
commit
8c992569d5
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ angular.module('copayApp.services').service('startupService', function($log, $ti
|
|||
var statusBarVisible = false;
|
||||
|
||||
function _hideSplash(){
|
||||
if(navigator.splashscreen && splashscreenVisible){
|
||||
if(typeof navigator.splashscreen !== "undefined" && splashscreenVisible){
|
||||
$log.debug('startupService is hiding the splashscreen...');
|
||||
$timeout(function(){
|
||||
navigator.splashscreen.hide();
|
||||
|
|
@ -15,7 +15,7 @@ angular.module('copayApp.services').service('startupService', function($log, $ti
|
|||
}
|
||||
}
|
||||
function _showStatusBar(){
|
||||
if(StatusBar && !statusBarVisible){
|
||||
if(typeof StatusBar !== "undefined" && !statusBarVisible){
|
||||
$log.debug('startupService is showing the StatusBar...');
|
||||
StatusBar.show();
|
||||
statusBarVisible = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue