From a7d206224c4db927cfdfb2dc922cf211c0f2ab0e Mon Sep 17 00:00:00 2001 From: Sebastiaan Pasma Date: Tue, 22 May 2018 11:58:00 +0200 Subject: [PATCH] Also check if Cordova is loaded.. Debugging with the device toolbar breaks as it exposes itself as android, and without StatusBar defined. --- src/js/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/routes.js b/src/js/routes.js index 395a356bd..fe7059d2b 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -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'); }