From 782cfd27bd47a95f240f3ee2995d4959106f9146 Mon Sep 17 00:00:00 2001 From: Daniel Roesler Date: Wed, 25 Feb 2015 14:49:47 -0800 Subject: [PATCH] switched to using indexOf --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 319919a..e5e6590 100644 --- a/README.md +++ b/README.md @@ -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); } }); diff --git a/index.html b/index.html index 02a47c0..6993167 100644 --- a/index.html +++ b/index.html @@ -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);