Skip to content

Commit 73766e6

Browse files
authored
Update whip.js (#27)
1 parent ce3b6a1 commit 73766e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

whip.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ export class WHIPClient
165165
//For each other param
166166
for (const [ key, value ] of Object.entries(server.params))
167167
{
168-
//Get key in cammel case
169-
const cammelCase = key.replace(/([-_][a-z])/ig, $1 => $1.toUpperCase().replace("-", "").replace("_", ""))
168+
//Get key in camel case
169+
const camelCase = key.replace(/([-_][a-z])/ig, $1 => $1.toUpperCase().replace("-", "").replace("_", ""))
170170
//Unquote value and set them
171-
iceServer[cammelCase] = value;
171+
iceServer[camelCase] = value;
172172
}
173173
//Add to config
174174
config.iceServers.push(iceServer);

0 commit comments

Comments
 (0)