mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Code review related changes
* drop room ID from jitsi widget data * reame queryParts variable
This commit is contained in:
parent
d2e9ea58fd
commit
4b43e39d2a
@ -416,7 +416,6 @@ async function _startCallApp(roomId, type) {
|
|||||||
isAudioOnly: type === 'voice',
|
isAudioOnly: type === 'voice',
|
||||||
domain: jitsiDomain,
|
domain: jitsiDomain,
|
||||||
auth: jitsiAuth,
|
auth: jitsiAuth,
|
||||||
roomId: roomId,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const widgetId = (
|
const widgetId = (
|
||||||
|
@ -450,7 +450,7 @@ export default class WidgetUtils {
|
|||||||
|
|
||||||
static getLocalJitsiWrapperUrl(opts: {forLocalRender?: boolean, auth?: string}={}) {
|
static getLocalJitsiWrapperUrl(opts: {forLocalRender?: boolean, auth?: string}={}) {
|
||||||
// NB. we can't just encodeURIComponent all of these because the $ signs need to be there
|
// NB. we can't just encodeURIComponent all of these because the $ signs need to be there
|
||||||
const queryParts = [
|
const queryStringParts = [
|
||||||
'conferenceDomain=$domain',
|
'conferenceDomain=$domain',
|
||||||
'conferenceId=$conferenceId',
|
'conferenceId=$conferenceId',
|
||||||
'isAudioOnly=$isAudioOnly',
|
'isAudioOnly=$isAudioOnly',
|
||||||
@ -460,9 +460,9 @@ export default class WidgetUtils {
|
|||||||
'roomId=$matrix_room_id',
|
'roomId=$matrix_room_id',
|
||||||
];
|
];
|
||||||
if (opts.auth) {
|
if (opts.auth) {
|
||||||
queryParts.push(`auth=${opts.auth}`);
|
queryStringParts.push(`auth=${opts.auth}`);
|
||||||
}
|
}
|
||||||
const queryString = queryParts.join('&');
|
const queryString = queryStringParts.join('&');
|
||||||
|
|
||||||
let baseUrl = window.location;
|
let baseUrl = window.location;
|
||||||
if (window.location.protocol !== "https:" && !opts.forLocalRender) {
|
if (window.location.protocol !== "https:" && !opts.forLocalRender) {
|
||||||
|
Loading…
Reference in New Issue
Block a user