diff --git a/src/analytics/PosthogAnalytics.ts b/src/analytics/PosthogAnalytics.ts index ca0df15f..c98e0847 100644 --- a/src/analytics/PosthogAnalytics.ts +++ b/src/analytics/PosthogAnalytics.ts @@ -196,7 +196,7 @@ export class PosthogAnalytics { callBackend: "livekit", cryptoVersion: widget ? undefined - : window.matrixclient.getCrypto()?.getVersion(), + : window.matrixclient?.getCrypto()?.getVersion(), }; }