diff --git a/src/CallHandler.js b/src/CallHandler.js index 86674afd7d..7ec4e7d8bb 100644 --- a/src/CallHandler.js +++ b/src/CallHandler.js @@ -435,7 +435,7 @@ async function _startCallApp(roomId, type) { const confId = room.roomId.replace(/[^A-Za-z0-9]/g, '') + widgetSessionId; const jitsiDomain = SdkConfig.get()['jitsi']['preferredDomain']; - const widgetUrl = WidgetUtils.getLocalJitsiWrapperUrl({}); + const widgetUrl = WidgetUtils.getLocalJitsiWrapperUrl(); const widgetData = { widgetSessionId, // TODO: Remove this eventually diff --git a/src/utils/WidgetUtils.js b/src/utils/WidgetUtils.js index 26e29b49f8..e92fd1ed27 100644 --- a/src/utils/WidgetUtils.js +++ b/src/utils/WidgetUtils.js @@ -474,7 +474,7 @@ export default class WidgetUtils { return encodeURIComponent(`${widgetLocation}::${widgetUrl}`); } - static getLocalJitsiWrapperUrl(opts: {forLocalRender?: boolean}) { + static getLocalJitsiWrapperUrl(opts: {forLocalRender?: boolean}={}) { // NB. we can't just encodeURIComponent all of these because the $ signs need to be there const queryString = [ 'conferenceDomain=$domain',