Просмотр исходного кода

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 лет назад
Родитель
Сommit
025ff260f9
1 измененных файлов: 1 добавлений и 5 удалений
  1. 1
    5
      modules/RTC/RTCBrowserType.js

+ 1
- 5
modules/RTC/RTCBrowserType.js Просмотреть файл

@@ -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() {

Загрузка…
Отмена
Сохранить