switched to using indexOf

This commit is contained in:
Daniel Roesler 2015-02-25 14:49:47 -08:00
parent 62f08b5fac
commit 782cfd27bd
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ function getIPs(callback){
var lines = pc.localDescription.sdp.split('\n');
lines.forEach(function(line) {
if (line.startsWith('a=candidate:')) {
if(line.indexOf('a=candidate:') === 0){
handleCandidate(line);
}
});

View file

@ -99,7 +99,7 @@
var lines = pc.localDescription.sdp.split('\n');
lines.forEach(function(line){
if(line.startsWith('a=candidate:'))
if(line.indexOf('a=candidate:') === 0)
handleCandidate(line);
});
}, 1000);