From f28cf0ce699dd2f8391afc9251371754b78746b1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 17 Jul 2023 19:16:28 +0100 Subject: [PATCH] Fix embedded mode This was trying to get the room alias, which causes the config to be read. We don't need the room alias here though, so pass the flag to not return it. --- src/widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget.ts b/src/widget.ts index 93107fcd..fc7e529b 100644 --- a/src/widget.ts +++ b/src/widget.ts @@ -109,7 +109,7 @@ export const widget: WidgetHelpers | null = (() => { baseUrl, e2eEnabled, allowIceFallback, - } = getUrlParams(); + } = getUrlParams(true); if (!roomId) throw new Error("Room ID must be supplied"); if (!userId) throw new Error("User ID must be supplied"); if (!deviceId) throw new Error("Device ID must be supplied");