From 7f8aeb335fdda0a2862e136d58daa1d066c941e0 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Fri, 2 May 2025 17:11:33 -0500 Subject: [PATCH] remove logger statement and swap hash to search --- src/app/features/room/SmallWidget.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/features/room/SmallWidget.ts b/src/app/features/room/SmallWidget.ts index 0b8a8acd..7d8332a9 100644 --- a/src/app/features/room/SmallWidget.ts +++ b/src/app/features/room/SmallWidget.ts @@ -46,15 +46,12 @@ export const getWidgetUrl = ( const url = new URL(`${elementCallUrl}/room`) ?? new URL('./dist/element-call/dist/index.html', baseUrl); - logger.error(url); - const params = new URLSearchParams({ embed: 'true', - widgetId: `element-call-${roomId}`, + widgetId: `element-call-${roomId}-${Date.now()}`, appPrompt: 'false', preload: 'false', skipLobby: setParams.skipLobby ?? 'true', - //intent: 'join_existing', returnToLobby: setParams.returnToLobby ?? 'true', perParticipantE2EE: setParams.perParticipantE2EE ?? 'true', hideHeader: 'true', @@ -66,7 +63,7 @@ export const getWidgetUrl = ( }); const replacedParams = params.toString().replace(/%24/g, '$'); - url.hash = `#?${replacedParams}`; + url.search = `?${replacedParams}`; logger.info('Generated Element Call Widget URL:', url.toString()); return url;