add new local file for inclusion via ssi, intended for local variables describing the server

change analytics to pull from new collection jitsiAnalyticsPermanentProperties, which is to be user-defined via javascript in local.html
This commit is contained in:
Aaron van Meerten 2017-05-23 14:49:34 -05:00
parent 5be3504fad
commit 36d40cdec9
3 changed files with 4 additions and 10 deletions

View File

@ -4,6 +4,7 @@
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--#include virtual="base.html" -->
<!--#include virtual="local.html" -->
<script>
window.indexLoadedTime = window.performance.now();
console.log("(TIME) index.html loaded:\t", indexLoadedTime);

0
local.html Normal file
View File

View File

@ -122,16 +122,9 @@ class Analytics {
if (group) {
permanentProperties.group = group;
}
if (window.jitsiRegionInfo) {
permanentProperties.ProxyRegion
= window.jitsiRegionInfo.ProxyRegion;
permanentProperties.Region
= window.jitsiRegionInfo.Region;
permanentProperties.Shard
= window.jitsiRegionInfo.Shard;
permanentProperties.CrossRegion
= window.jitsiRegionInfo.CrossRegion;
if (window.jitsiAnalyticsPermanentProperties) {
permanentProperties.assign(
window.jitsiAnalyticsPermanentProperties);
}
analytics.addPermanentProperties(permanentProperties);