From ff02c461e70d52f868b7a53db64d04482e7d8386 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Thu, 22 May 2025 23:52:19 -0500 Subject: [PATCH] Fixes element-call embedded support (but it seems to run poorly) --- src/app/features/room/SmallWidget.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/features/room/SmallWidget.ts b/src/app/features/room/SmallWidget.ts index 0464a9c4..d057e806 100644 --- a/src/app/features/room/SmallWidget.ts +++ b/src/app/features/room/SmallWidget.ts @@ -44,8 +44,9 @@ export const getWidgetUrl = ( setParams: any ): URL => { const baseUrl = window.location.origin; - const url = - new URL(`${elementCallUrl}/room`) ?? new URL('./dist/element-call/dist/index.html', baseUrl); + const url = elementCallUrl + ? new URL(`${elementCallUrl}/room`) + : new URL('/public/element-call/index.html#', baseUrl); const params = new URLSearchParams({ embed: 'true',