diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-02-18 16:12:42 -0500 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-02-18 16:12:42 -0500 |
| commit | af74ef969c3cf21e78ee2e93e2956a8812512fe9 (patch) | |
| tree | c04d2d8718e260be9411a0f72d74ede8ef52b454 /www/js/MontageCtrl.js | |
| parent | 5e5f52e9af8b63f1444f2756f5a8816715b63a7a (diff) | |
#164 - initial fixes and refactoring
Former-commit-id: 5a21c98c22d8035454cf92eb7b7a4a2b65a4f0e3
Diffstat (limited to 'www/js/MontageCtrl.js')
| -rw-r--r-- | www/js/MontageCtrl.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
