Also check if Cordova is loaded.. Debugging with the device toolbar breaks as it exposes itself as android, and without StatusBar defined.
This commit is contained in:
parent
a2e1bd3a1e
commit
a7d206224c
1 changed files with 1 additions and 1 deletions
|
|
@ -1251,7 +1251,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
if (screen.width < 768 && platformInfo.isCordova)
|
||||
screen.lockOrientation('portrait');
|
||||
|
||||
if (ionic.Platform.isAndroid() && StatusBar) {
|
||||
if (ionic.Platform.isAndroid() && platformInfo.isCordova && StatusBar) {
|
||||
StatusBar.backgroundColorByHexString('#000000');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue