mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 06:50:28 +03:00
Fixes element-call embedded support (but it seems to run poorly)
This commit is contained in:
parent
e4ce4da8ee
commit
ff02c461e7
1 changed files with 3 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue