mirror of
https://github.com/vector-im/element-call.git
synced 2026-04-15 07:50:26 +00:00
Merge branch 'livekit' into eslint-upgrade
This commit is contained in:
@@ -70,9 +70,7 @@ interface WidgetHelpers {
|
||||
*/
|
||||
export const widget = ((): WidgetHelpers | null => {
|
||||
try {
|
||||
const query = new URLSearchParams(window.location.search);
|
||||
const widgetId = query.get("widgetId");
|
||||
const parentUrl = query.get("parentUrl");
|
||||
const { widgetId, parentUrl } = getUrlParams();
|
||||
|
||||
if (widgetId && parentUrl) {
|
||||
const parentOrigin = new URL(parentUrl).origin;
|
||||
|
||||
Reference in New Issue
Block a user