forked from github/cinny
Fixes element-call embedded support (but it seems to run poorly)
This commit is contained in:
@@ -44,8 +44,9 @@ export const getWidgetUrl = (
|
|||||||
setParams: any
|
setParams: any
|
||||||
): URL => {
|
): URL => {
|
||||||
const baseUrl = window.location.origin;
|
const baseUrl = window.location.origin;
|
||||||
const url =
|
const url = elementCallUrl
|
||||||
new URL(`${elementCallUrl}/room`) ?? new URL('./dist/element-call/dist/index.html', baseUrl);
|
? new URL(`${elementCallUrl}/room`)
|
||||||
|
: new URL('/public/element-call/index.html#', baseUrl);
|
||||||
|
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
embed: 'true',
|
embed: 'true',
|
||||||
|
|||||||
Reference in New Issue
Block a user