Skip to content

Commit

Permalink
Merge pull request #23 from ckaczor/master
Browse files Browse the repository at this point in the history
Fix error loading in Firefox when media.peerconnection.enabled is set to false in about:config
  • Loading branch information
muaz-khan committed May 23, 2016
2 parents dfbd400 + fbfee5f commit 11cb6bb
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,4 +1,4 @@
// Last time updated: 2016-05-04 3:50:22 PM UTC
// Last time updated: 2016-05-23 4:52:53 PM UTC

// Latest file can be found here: https://cdn.webrtc-experiment.com/DetectRTC.js

Expand Down Expand Up @@ -946,7 +946,7 @@

// -----
var isRTPSenderReplaceTracksSupported = false;
if (DetectRTC.browser.isFirefox /*&& DetectRTC.browser.version > 39*/ ) {
if (DetectRTC.browser.isFirefox && typeof mozRTCPeerConnection !== 'undefined' /*&& DetectRTC.browser.version > 39*/ ) {
/*global mozRTCPeerConnection:true */
if ('getSenders' in mozRTCPeerConnection.prototype) {
isRTPSenderReplaceTracksSupported = true;
Expand Down
Loading

0 comments on commit 11cb6bb

Please sign in to comment.