Browse Source

cleanup: simplify RTCBrowserType.usesPlanB

Define it as !usesUnifiedPlan(). This guarantees that one of the two will be
defined, but only one of them.
dev1
Saúl Ibarra Corretgé 8 years ago
parent
commit
025ff260f9
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      modules/RTC/RTCBrowserType.js

+ 1
- 5
modules/RTC/RTCBrowserType.js View File

@@ -163,11 +163,7 @@ const RTCBrowserType = {
163 163
     },
164 164
 
165 165
     usesPlanB() {
166
-        return (
167
-            RTCBrowserType.isChrome()
168
-                || RTCBrowserType.isOpera()
169
-                || RTCBrowserType.isReactNative()
170
-                || RTCBrowserType.isTemasysPluginUsed());
166
+        return !RTCBrowserType.usesUnifiedPlan();
171 167
     },
172 168
 
173 169
     usesUnifiedPlan() {

Loading…
Cancel
Save