Redirects to unsupported browser page for FF < 39.

This commit is contained in:
George Politis 2015-03-13 10:11:49 +01:00
parent 09f53c6b21
commit 66a53c7dc0
2 changed files with 17679 additions and 17685 deletions

File diff suppressed because it is too large Load Diff

View File

@ -130,7 +130,7 @@ function RTCUtils(RTCService)
if (navigator.mozGetUserMedia) {
console.log('This appears to be Firefox');
var version = parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1], 10);
if (version >= 22) {
if (version >= 39) {
this.peerconnection = mozRTCPeerConnection;
this.browser = RTCBrowserType.RTC_BROWSER_FIREFOX;
this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
@ -162,7 +162,11 @@ function RTCUtils(RTCService)
};
RTCSessionDescription = mozRTCSessionDescription;
RTCIceCandidate = mozRTCIceCandidate;
} else {
window.location.href = 'unsupported_browser.html';
return;
}
} else if (navigator.webkitGetUserMedia) {
console.log('This appears to be Chrome');
this.peerconnection = webkitRTCPeerConnection;
@ -205,13 +209,6 @@ function RTCUtils(RTCService)
window.location.href = 'unsupported_browser.html';
return;
}
if (this.browser !== RTCBrowserType.RTC_BROWSER_CHROME &&
config.enableFirefoxSupport !== true) {
window.location.href = 'unsupported_browser.html';
return;
}
}