From af74ef969c3cf21e78ee2e93e2956a8812512fe9 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Thu, 18 Feb 2016 16:12:42 -0500 Subject: #164 - initial fixes and refactoring Former-commit-id: 5a21c98c22d8035454cf92eb7b7a4a2b65a4f0e3 --- www/js/MontageCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 5c7e519f..5102068e 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -194,7 +194,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' //console.log ("MONITORS " + JSON.stringify($scope.monitors)); $rootScope.validMonitorId = $scope.monitors[0].Monitor.Id; - ZMDataModel.getAuthKey($rootScope.validMonitorId, $scope.monitors[0].Monitor.connKey) + ZMDataModel.getAuthKey($rootScope.validMonitorId, (Math.floor((Math.random() * 999999) + 1)).toString()) .then(function (success) { $ionicLoading.hide(); //console.log(success); @@ -592,7 +592,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' $scope.ptzMoveCommand = ""; $scope.ptzStopCommand = ""; $scope.presetOn = false; - $scope.connKey = connKey; + $scope.connKey = (Math.floor((Math.random() * 999999) + 1)).toString(); // This is a modal to show the monitor footage // We need to switch to always awake if set so the feed doesn't get interrupted -- cgit v1.2.3