Radix should be specified when calling ParseInt function in adapter.js. Refer to issue 2490.
R=dutton@google.com, juberti@google.com Review URL: https://webrtc-codereview.appspot.com/2709006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5017 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
8575980e16
commit
90d8719fd7
@ -19,7 +19,7 @@ if (navigator.mozGetUserMedia) {
|
||||
webrtcDetectedBrowser = "firefox";
|
||||
|
||||
webrtcDetectedVersion =
|
||||
parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]);
|
||||
parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1], 10);
|
||||
|
||||
// The RTCPeerConnection object.
|
||||
RTCPeerConnection = mozRTCPeerConnection;
|
||||
@ -80,7 +80,7 @@ if (navigator.mozGetUserMedia) {
|
||||
|
||||
webrtcDetectedBrowser = "chrome";
|
||||
webrtcDetectedVersion =
|
||||
parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2]);
|
||||
parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2], 10);
|
||||
|
||||
// Creates iceServer from the url for Chrome.
|
||||
createIceServer = function(url, username, password) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user