mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 15:00:30 +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
|
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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue