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:
Sebastiaan Pasma 2018-05-22 11:58:00 +02:00 committed by Sebastiaan Pasma
commit a7d206224c

View file

@ -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');
}