Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat: Passes the environment type and subproduct to the analytics handler constructor.
Boris Grozevc7714959e639
diff --git a/react/features/analytics/functions.js b/react/features/analytics/functions.jsindex ca334d3cf3..440f9d60bf 100644--- a/react/features/analytics/functions.js+++ b/react/features/analytics/functions.js@@ -39,10 +39,12 @@ export function initAnalytics({ getState }: { getState: Function }) {const state = getState();const config = state['features/base/config'];- const { analyticsScriptUrls } = config;+ const { analyticsScriptUrls, deploymentInfo } = config;const { group, server, user } = state['features/base/jwt'];const handlerConstructorOptions = {+ envType: (deploymentInfo && deploymentInfo.envType) || 'dev',group,+ subproduct: deploymentInfo && deploymentInfo.environment,user,version: JitsiMeetJS.version};@@ -61,8 +63,6 @@ export function initAnalytics({ getState }: { getState: Function }) {// Optionally, include local deployment information based on the// contents of window.config.deploymentInfo.- const { deploymentInfo } = config;-if (deploymentInfo) {for (const key in deploymentInfo) {if (deploymentInfo.hasOwnProperty(key)) {