Skip to content

Commit ce3b6a1

Browse files
authored
Update whep.js (#28)
1 parent bf32a8b commit ce3b6a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

whep.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ export class WHEPClient extends EventTarget
219219
//For each other param
220220
for (const [ key, value ] of Object.entries(server.params))
221221
{
222-
//Get key in cammel case
223-
const cammelCase = key.replace(/([-_][a-z])/ig, $1 => $1.toUpperCase().replace("-", "").replace("_", ""))
222+
//Get key in camel case
223+
const camelCase = key.replace(/([-_][a-z])/ig, $1 => $1.toUpperCase().replace("-", "").replace("_", ""))
224224
//Unquote value and set them
225-
iceServer[cammelCase] = value;
225+
iceServer[camelCase] = value;
226226
}
227227
//Add to config
228228
config.iceServers.push(iceServer);

0 commit comments

Comments
 (0)