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;
|
var statusBarVisible = false;
|
||||||
|
|
||||||
function _hideSplash(){
|
function _hideSplash(){
|
||||||
if(navigator.splashscreen && splashscreenVisible){
|
if(typeof navigator.splashscreen !== "undefined" && splashscreenVisible){
|
||||||
$log.debug('startupService is hiding the splashscreen...');
|
$log.debug('startupService is hiding the splashscreen...');
|
||||||
$timeout(function(){
|
$timeout(function(){
|
||||||
navigator.splashscreen.hide();
|
navigator.splashscreen.hide();
|
||||||
|
|
@ -15,7 +15,7 @@ angular.module('copayApp.services').service('startupService', function($log, $ti
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function _showStatusBar(){
|
function _showStatusBar(){
|
||||||
if(StatusBar && !statusBarVisible){
|
if(typeof StatusBar !== "undefined" && !statusBarVisible){
|
||||||
$log.debug('startupService is showing the StatusBar...');
|
$log.debug('startupService is showing the StatusBar...');
|
||||||
StatusBar.show();
|
StatusBar.show();
|
||||||
statusBarVisible = true;
|
statusBarVisible = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue