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:
parent
5be3504fad
commit
36d40cdec9
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue