Browse Source

fix: fixup regression after isAndroid function removal

tags/v0.0.2
Saúl Ibarra Corretgé 8 years ago
parent
commit
64c8c0ebe4
1 changed files with 4 additions and 6 deletions
  1. 4
    6
      modules/RTC/RTCBrowserType.js

+ 4
- 6
modules/RTC/RTCBrowserType.js View File

37
      * @returns {string}
37
      * @returns {string}
38
      */
38
      */
39
     getBrowserName() {
39
     getBrowserName() {
40
-        let browser;
40
+        const isAndroid = navigator.userAgent.indexOf('Android') !== -1;
41
 
41
 
42
-        if (RTCBrowserType.isAndroid()) {
43
-            browser = 'android';
44
-        } else {
45
-            browser = currentBrowser.split('rtc_browser.')[1];
42
+        if (isAndroid) {
43
+            return 'android';
46
         }
44
         }
47
 
45
 
48
-        return browser;
46
+        return currentBrowser.split('rtc_browser.')[1];
49
     },
47
     },
50
 
48
 
51
     /**
49
     /**

Loading…
Cancel
Save