Browse Source

cleanup: make test more readable

dev1
Saúl Ibarra Corretgé 8 years ago
parent
commit
80fa88bbae
1 changed files with 5 additions and 6 deletions
  1. 5
    6
      modules/RTC/RTCBrowserType.js

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

@@ -120,12 +120,11 @@ const RTCBrowserType = {
120 120
         // Temasys do not support Microsoft Edge:
121 121
         // http://support.temasys.com.sg/support/solutions/articles/
122 122
         // 5000654345-can-the-temasys-webrtc-plugin-be-used-with-microsoft-edge-
123
-        if (RTCBrowserType.isIExplorer()
124
-                && RTCBrowserType.getIExplorerVersion() < 12) {
125
-            return true;
126
-        }
127
-
128
-        return RTCBrowserType.isSafari();
123
+        return (
124
+            RTCBrowserType.isSafari()
125
+            || (RTCBrowserType.isIExplorer()
126
+                && RTCBrowserType.getIExplorerVersion() < 12)
127
+        );
129 128
     },
130 129
 
131 130
     /**

Loading…
Cancel
Save