In loadtest, make localAudio non-const. (#8829)

(Because we modify it.)
This commit is contained in:
Jonathan Lennox 2021-03-18 09:39:13 -04:00 committed by GitHub
parent a22d054b10
commit 81cf79e643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,6 @@ setConfigFromURLParams(config, {}, {}, window.location);
const params = parseURLParams(window.location, false, 'hash');
const { isHuman = false } = params;
const {
localAudio = config.startWithAudioMuted !== true,
localVideo = config.startWithVideoMuted !== true,
remoteVideo = isHuman,
remoteAudio = isHuman,
@ -19,6 +18,10 @@ const {
autoCreateLocalAudio = config.testing.noAutoLocalAudio !== true
} = params;
let {
localAudio = config.startWithAudioMuted !== true,
} = params;
const { room: roomName } = parseURIString(window.location.toString());
let connection = null;