diff options
Diffstat (limited to 'www/js/DataModel.js')
| -rwxr-xr-x | www/js/DataModel.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 455e4c0a..e94ea0a4 100755 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -183,6 +183,7 @@ angular.module('zmApp.controllers') 'momentArrangeBy': 'StartTime', 'showLiveForInProgressEvents': true, 'disableSimulStreaming': false, + 'insertBasicAuthToken': false, }; @@ -589,6 +590,14 @@ angular.module('zmApp.controllers') return { + + + insertBasicAuthToken: function () { + + return loginData.insertBasicAuthToken && $rootScope.basicAuthToken ? "&basicauth="+$rootScope.basicAuthToken:""; + + }, + setCurrentServerMultiPortSupported:function (val) { setCurrentServerMultiPortSupported(val); }, @@ -1258,6 +1267,12 @@ angular.module('zmApp.controllers') loginData.momentArrangeBy = "StartTime"; } + + if (typeof loginData.insertBasicAuthToken == 'undefined') { + + loginData.insertBasicAuthToken = false; + + } if (typeof loginData.showLiveForInProgressEvents == 'undefined') { |
