fix: Fix appending URL params. (#12763)

* fix: Fix appending URL params.

* squash: Lint.
This commit is contained in:
bgrozev 2023-01-12 07:37:54 -06:00 committed by GitHub
parent 7f54fa4ed8
commit bc88ebe443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -15,7 +15,11 @@ import {
import { getLocalParticipant } from '../participants/functions';
import { toState } from '../redux/functions';
import { getJitsiMeetGlobalNS } from '../util/helpers';
import { getBackendSafePath, safeDecodeURIComponent } from '../util/uri';
import {
appendURLParam,
getBackendSafePath,
safeDecodeURIComponent
} from '../util/uri';
import { setObfuscatedRoom } from './actions';
import {
@ -279,8 +283,12 @@ export function generateVisitorConfig(stateful: IStateful, params: Array<string>
// This flag disables sending the initial conference request
config.disableFocus = true;
config.bosh += `?vnode=${vnode}`;
config.websocket += `?vnode=${vnode}`;
if (config.bosh) {
config.bosh = appendURLParam(config.bosh, 'vnode', vnode);
}
if (config.websocket) {
config.websocket = appendURLParam(config.websocket, 'vnode', vnode);
}
}
/**