summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-30 12:06:02 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-30 12:06:02 -0400
commitd49c8b89ab7c97839516d8f57dcaad4d714f3aea (patch)
tree72ca1f89546d9485f5a23350a9b05424fbbdd015 /www/js/DataModel.js
parent81be03e8259d967c468871b426c0ac1cd11657c2 (diff)
#618 make this optional in dev settings
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') {