Merge pull request #1271 from vector-im/dbkr/fix_embedded

Fix embedded mode
This commit is contained in:
David Baker
2023-07-18 13:25:24 +01:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -90,8 +90,10 @@ interface UrlParams {
/**
* Gets the app parameters for the current URL.
* @param query The URL query string
* @param fragment The URL fragment string
* @param ignoreRoomAlias If true, does not try to parse a room alias from the URL
* @param search The URL search string
* @param pathname The URL path name
* @param hash The URL hash
* @returns The app parameters encoded in the URL
*/
export const getUrlParams = (

View File

@@ -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");