diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-30 12:06:02 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-30 12:06:02 -0400 |
| commit | d49c8b89ab7c97839516d8f57dcaad4d714f3aea (patch) | |
| tree | 72ca1f89546d9485f5a23350a9b05424fbbdd015 /www/js/EventCtrl.js | |
| parent | 81be03e8259d967c468871b426c0ac1cd11657c2 (diff) | |
#618 make this optional in dev settings
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 5604ff8d..666f7c7f 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -965,10 +965,10 @@ angular.module('zmApp.controllers') $scope.fallbackImgSrc +=$rootScope.authSession; } - if ($rootScope.basicAuthToken) { - $scope.imgsrc +="&basicauth="+$rootScope.basicAuthToken; - $scope.fallbackImgSrc +="&basicauth="+$rootScope.basicAuthToken; - } + + $scope.imgsrc +=NVRDataModel.insertBasicAuthToken(); + $scope.fallbackImgSrc +=NVRDataModel.insertBasicAuthToken(); + $rootScope.zmPopup = $ionicPopup.show( @@ -2479,9 +2479,9 @@ angular.module('zmApp.controllers') /* videoURL = event.Event.baseURL + "/events/" + event.Event.relativePath + event.Event.DefaultVideo;*/ videoURL = event.Event.baseURL + "/index.php?view=view_video&eid=" + event.Event.Id; if ($rootScope.authSession != 'undefined') videoURL +=$rootScope.authSession; - if ($rootScope.basicAuthToken) videoURL = videoURL+"&basicauth="+$rootScope.basicAuthToken; - - + vidoeURL+=NVRDataModel.insertBasicAuthToken(); + + console.log("************** VIDEO IS " + videoURL); event.Event.video.config = { autoPlay: true, @@ -3159,7 +3159,8 @@ angular.module('zmApp.controllers') "&width="+event.Event.thumbWidth*2 + "&height="+event.Event.thumbHeight*2; if ($rootScope.authSession !='undefined') stream+=$rootScope.authSession; - if ($rootScope.basicAuthToken) stream +="&basicauth="+$rootScope.basicAuthToken; + + stream += NVRDataModel.insertBasicAuthToken(); return stream; }; @@ -3177,7 +3178,9 @@ angular.module('zmApp.controllers') "&fid="+slide.id; } if ($rootScope.authSession !='undefined') stream+=$rootScope.authSession; - if ($rootScope.basicAuthToken) stream +="&basicauth="+$rootScope.basicAuthToken; + + stream +=NVRDataModel.insertBasicAuthToken(); + return stream; } @@ -3201,8 +3204,8 @@ angular.module('zmApp.controllers') } if ($rootScope.authSession !='undefined') stream+=$rootScope.authSession; - if ($rootScope.basicAuthToken) stream +="&basicauth="+$rootScope.basicAuthToken; - + stream += NVRDataModel.insertBasicAuthToken(); + return stream; }; |
