Fixes element-call embedded support (but it seems to run poorly)

This commit is contained in:
Gigiaj 2025-05-22 23:52:19 -05:00
parent e4ce4da8ee
commit ff02c461e7

View file

@ -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',