Browse Source

Add Chromium based Edge (Chredge) to the list of webrtc-capable browsers (#1017)

* Add Edge beta (Chredge) to the list of chromium based browsers.
dev1
Jaya Allamsetty 5 years ago
parent
commit
8deeaf6bd2
No account linked to committer's email address
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      modules/browser/BrowserCapabilities.js

+ 10
- 0
modules/browser/BrowserCapabilities.js View File

61
      */
61
      */
62
     isChromiumBased() {
62
     isChromiumBased() {
63
         return this.isChrome()
63
         return this.isChrome()
64
+            || this.isChromiumBasedEdge()
64
             || this.isElectron()
65
             || this.isElectron()
65
             || this.isNWJS()
66
             || this.isNWJS()
66
             || this.isOpera();
67
             || this.isOpera();
67
     }
68
     }
68
 
69
 
70
+    /**
71
+     * Checks if the current browser is Edge that is Chromium based.
72
+     */
73
+    isChromiumBasedEdge() {
74
+        const REQUIRED_EDGE_VERSION = 72;
75
+
76
+        return this.isEdge() && this.isVersionGreaterThan(REQUIRED_EDGE_VERSION);
77
+    }
78
+
69
     /**
79
     /**
70
      * Checks if current browser is a Safari and a version of Safari that
80
      * Checks if current browser is a Safari and a version of Safari that
71
      * supports native webrtc.
81
      * supports native webrtc.

Loading…
Cancel
Save