fix: Fix appending URL params. (#12763)
* fix: Fix appending URL params. * squash: Lint.
This commit is contained in:
parent
7f54fa4ed8
commit
bc88ebe443
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue