Skip to content

Commit

Permalink
Update whip.js (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilyoung authored May 29, 2024
1 parent ce3b6a1 commit 73766e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions whip.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ export class WHIPClient
//For each other param
for (const [ key, value ] of Object.entries(server.params))
{
//Get key in cammel case
const cammelCase = key.replace(/([-_][a-z])/ig, $1 => $1.toUpperCase().replace("-", "").replace("_", ""))
//Get key in camel case
const camelCase = key.replace(/([-_][a-z])/ig, $1 => $1.toUpperCase().replace("-", "").replace("_", ""))
//Unquote value and set them
iceServer[cammelCase] = value;
iceServer[camelCase] = value;
}
//Add to config
config.iceServers.push(iceServer);
Expand Down

0 comments on commit 73766e6

Please sign in to comment.