summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/DataModel.js')
-rwxr-xr-xwww/js/DataModel.js15
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') {