Browse Source

Redirects to unsupported browser page for FF < 39.

j8
George Politis 10 years ago
parent
commit
66a53c7dc0
2 changed files with 17690 additions and 17696 deletions
  1. 17685
    17688
      libs/app.bundle.js
  2. 5
    8
      modules/RTC/RTCUtils.js

+ 17685
- 17688
libs/app.bundle.js
File diff suppressed because it is too large
View File


+ 5
- 8
modules/RTC/RTCUtils.js View File

130
     if (navigator.mozGetUserMedia) {
130
     if (navigator.mozGetUserMedia) {
131
         console.log('This appears to be Firefox');
131
         console.log('This appears to be Firefox');
132
         var version = parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1], 10);
132
         var version = parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1], 10);
133
-        if (version >= 22) {
133
+        if (version >= 39) {
134
             this.peerconnection = mozRTCPeerConnection;
134
             this.peerconnection = mozRTCPeerConnection;
135
             this.browser = RTCBrowserType.RTC_BROWSER_FIREFOX;
135
             this.browser = RTCBrowserType.RTC_BROWSER_FIREFOX;
136
             this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
136
             this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
162
             };
162
             };
163
             RTCSessionDescription = mozRTCSessionDescription;
163
             RTCSessionDescription = mozRTCSessionDescription;
164
             RTCIceCandidate = mozRTCIceCandidate;
164
             RTCIceCandidate = mozRTCIceCandidate;
165
+        } else {
166
+            window.location.href = 'unsupported_browser.html';
167
+            return;
165
         }
168
         }
169
+
166
     } else if (navigator.webkitGetUserMedia) {
170
     } else if (navigator.webkitGetUserMedia) {
167
         console.log('This appears to be Chrome');
171
         console.log('This appears to be Chrome');
168
         this.peerconnection = webkitRTCPeerConnection;
172
         this.peerconnection = webkitRTCPeerConnection;
205
         window.location.href = 'unsupported_browser.html';
209
         window.location.href = 'unsupported_browser.html';
206
         return;
210
         return;
207
     }
211
     }
208
-
209
-    if (this.browser !== RTCBrowserType.RTC_BROWSER_CHROME &&
210
-        config.enableFirefoxSupport !== true) {
211
-        window.location.href = 'unsupported_browser.html';
212
-        return;
213
-    }
214
-
215
 }
212
 }
216
 
213
 
217
 
214
 

Loading…
Cancel
Save