switched to using indexOf
This commit is contained in:
parent
62f08b5fac
commit
782cfd27bd
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ function getIPs(callback){
|
||||||
var lines = pc.localDescription.sdp.split('\n');
|
var lines = pc.localDescription.sdp.split('\n');
|
||||||
|
|
||||||
lines.forEach(function(line) {
|
lines.forEach(function(line) {
|
||||||
if (line.startsWith('a=candidate:')) {
|
if(line.indexOf('a=candidate:') === 0){
|
||||||
handleCandidate(line);
|
handleCandidate(line);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
var lines = pc.localDescription.sdp.split('\n');
|
var lines = pc.localDescription.sdp.split('\n');
|
||||||
|
|
||||||
lines.forEach(function(line){
|
lines.forEach(function(line){
|
||||||
if(line.startsWith('a=candidate:'))
|
if(line.indexOf('a=candidate:') === 0)
|
||||||
handleCandidate(line);
|
handleCandidate(line);
|
||||||
});
|
});
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
Loading…
Reference in a new issue