Skip to content

Commit

Permalink
Merge pull request #73 from thadeu/hotfix/line-to-afterCreateOffer
Browse files Browse the repository at this point in the history
added safe indexOf to afterCreateOffer
  • Loading branch information
muaz-khan authored Dec 6, 2018
2 parents bf28ff7 + c742443 commit fe943a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DetectRTC.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// Last Updated On: 2018-10-31 5:21:01 AM UTC
// Last Updated On: 2018-12-06 11:13:55 AM UTC

// ________________
// DetectRTC v1.3.8
Expand Down Expand Up @@ -644,7 +644,7 @@
var lines = pc.localDescription.sdp.split('\n');

lines.forEach(function(line) {
if (line.indexOf('a=candidate:') === 0) {
if (line && line.indexOf('a=candidate:') === 0) {
handleCandidate(line);
}
});
Expand Down
Loading

0 comments on commit fe943a0

Please sign in to comment.