From b39eae4b52c199c30c3c7489382403057f12d93c Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 5 Apr 2018 15:37:52 -0400 Subject: #602 support --- www/js/MontageHistoryCtrl.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'www/js/MontageHistoryCtrl.js') diff --git a/www/js/MontageHistoryCtrl.js b/www/js/MontageHistoryCtrl.js index 67b48707..c9f78499 100644 --- a/www/js/MontageHistoryCtrl.js +++ b/www/js/MontageHistoryCtrl.js @@ -898,6 +898,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc });*/ $scope.$on('$ionicView.beforeEnter', function() { + $scope.isMultiPort = NVRDataModel.getCurrentServerMultiPortSupported(); // NVRDataModel.log ("Before Enter History: initing connkeys"); }); $scope.$on('$ionicView.beforeLeave', function() @@ -1448,9 +1449,16 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc $scope.currentLimit = $scope.LoginData.maxMontage; if ($rootScope.platformOS != 'ios') { - NVRDataModel.log("Limiting montage to 5, thanks to Chrome's stupid connection limit"); - $scope.currentLimit = 5; - $scope.monLimit = 5; + if (!NVRDataModel.getCurrentServerMultiPortSupported()) { + NVRDataModel.log("Limiting montage to 5, thanks to Chrome's stupid connection limit"); + $scope.currentLimit = 5; + $scope.monLimit = 5; + } + else { + NVRDataModel.debug ("Since Multiport is supported, taking off Chrome limit!"); + } + + } $rootScope.authSession = "undefined"; $ionicLoading.show( -- cgit v1.2.3