mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 23:30:28 +03:00
remove logger statement and swap hash to search
This commit is contained in:
parent
a2a83fc316
commit
7f8aeb335f
1 changed files with 2 additions and 5 deletions
|
|
@ -46,15 +46,12 @@ export const getWidgetUrl = (
|
||||||
const url =
|
const url =
|
||||||
new URL(`${elementCallUrl}/room`) ?? new URL('./dist/element-call/dist/index.html', baseUrl);
|
new URL(`${elementCallUrl}/room`) ?? new URL('./dist/element-call/dist/index.html', baseUrl);
|
||||||
|
|
||||||
logger.error(url);
|
|
||||||
|
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
embed: 'true',
|
embed: 'true',
|
||||||
widgetId: `element-call-${roomId}`,
|
widgetId: `element-call-${roomId}-${Date.now()}`,
|
||||||
appPrompt: 'false',
|
appPrompt: 'false',
|
||||||
preload: 'false',
|
preload: 'false',
|
||||||
skipLobby: setParams.skipLobby ?? 'true',
|
skipLobby: setParams.skipLobby ?? 'true',
|
||||||
//intent: 'join_existing',
|
|
||||||
returnToLobby: setParams.returnToLobby ?? 'true',
|
returnToLobby: setParams.returnToLobby ?? 'true',
|
||||||
perParticipantE2EE: setParams.perParticipantE2EE ?? 'true',
|
perParticipantE2EE: setParams.perParticipantE2EE ?? 'true',
|
||||||
hideHeader: 'true',
|
hideHeader: 'true',
|
||||||
|
|
@ -66,7 +63,7 @@ export const getWidgetUrl = (
|
||||||
});
|
});
|
||||||
|
|
||||||
const replacedParams = params.toString().replace(/%24/g, '$');
|
const replacedParams = params.toString().replace(/%24/g, '$');
|
||||||
url.hash = `#?${replacedParams}`;
|
url.search = `?${replacedParams}`;
|
||||||
|
|
||||||
logger.info('Generated Element Call Widget URL:', url.toString());
|
logger.info('Generated Element Call Widget URL:', url.toString());
|
||||||
return url;
|
return url;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue