summaryrefslogtreecommitdiff
path: root/www/js/LoginCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-11-14 09:54:46 -0500
committerPliable Pixels <pliablepixels@gmail.com>2018-11-14 09:54:46 -0500
commited485b7a29ceb8b59e36ed09f8373dcb88f79461 (patch)
tree06da921491ca5fe05510f3140f830ada7958b9f2 /www/js/LoginCtrl.js
parent754b54f8687c5e0e4b23f5365bedcfa4c55b019c (diff)
updates to remove wkwebview from android - causes issues displaying images with self signed
Diffstat (limited to 'www/js/LoginCtrl.js')
-rw-r--r--www/js/LoginCtrl.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js
index 09a48ac2..b24514f6 100644
--- a/www/js/LoginCtrl.js
+++ b/www/js/LoginCtrl.js
@@ -607,6 +607,11 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r
console.log('-->Error setting SSL permissive');
});
+ if ($rootScope.platformOS == 'android') {
+ NVRDataModel.log (">>> Android: enabling inline image view for self signed certs");
+ cordova.plugins.certificates.trustUnsecureCerts(true);
+ }
+
} else {
NVRDataModel.log(">>>> Enabling strict SSL checking (turn off in Dev Options if you can't connect)");