Skip to content

Commit

Permalink
update JS code to call new server ICE endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Sylvester committed Sep 15, 2016
1 parent 6dcc839 commit fa19ce0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/web_app/js/util.js
Expand Up @@ -99,11 +99,15 @@ function requestIceServers(iceServerRequestUrl, iceTransports) {
reject(Error('Error parsing response JSON: ' + response));
return;
}
if (!!iceServerRequestResponse.e) {
reject(Error('Could not acquire ICE string: ' + iceServerRequestResponse.e));
return;
}
if (iceTransports !== '') {
filterIceServersUrls(iceServerRequestResponse, iceTransports);
}
trace('Retrieved ICE server information.');
resolve(iceServerRequestResponse.iceServers);
resolve(iceServerRequestResponse.d.iceServers);
}).catch(function(error) {
reject(Error('ICE server request error: ' + error.message));
return;
Expand Down

0 comments on commit fa19ce0

Please sign in to comment.