Parcourir la source

feat(browser-support): Add support for WKWebview based browsers.

j8
Jaya Allamsetty il y a 4 ans
Parent
révision
0ee03f1538

+ 1
- 1
modules/UI/videolayout/VideoContainer.js Voir le fichier

@@ -610,7 +610,7 @@ export class VideoContainer extends LargeContainer {
610 610
         // explicitly disabled.
611 611
         if (interfaceConfig.DISABLE_VIDEO_BACKGROUND
612 612
                 || browser.isFirefox()
613
-                || browser.isSafari()) {
613
+                || browser.isWebKitBased()) {
614 614
             return;
615 615
         }
616 616
 

+ 1
- 1
react/features/base/environment/environment.js Voir le fichier

@@ -92,7 +92,7 @@ export function isSupportedBrowser() {
92 92
 export function isSupportedMobileBrowser() {
93 93
     return (Platform.OS === 'android' && browser.isChromiumBased())
94 94
         || (Platform.OS === 'android' && browser.isFirefox())
95
-        || (Platform.OS === 'ios' && browser.isSafari());
95
+        || (Platform.OS === 'ios' && browser.isWebKitBased());
96 96
 }
97 97
 
98 98
 /**

+ 1
- 1
react/features/base/jitsi-local-storage/setup.web.js Voir le fichier

@@ -24,7 +24,7 @@ function onFakeLocalStorageChanged() {
24 24
  * @returns {void}
25 25
  */
26 26
 function setupJitsiLocalStorage() {
27
-    if (jitsiLocalStorage.isLocalStorageDisabled() || browser.isSafari()) {
27
+    if (jitsiLocalStorage.isLocalStorageDisabled() || browser.isWebKitBased()) {
28 28
         const urlParams = parseURLParams(window.location);
29 29
 
30 30
         try {

+ 1
- 1
react/features/settings/components/web/audio/AudioSettingsContent.js Voir le fichier

@@ -172,7 +172,7 @@ class AudioSettingsContent extends Component<Props, State> {
172 172
      * @returns {void}
173 173
      */
174 174
     async _setTracks() {
175
-        if (browser.isSafari()) {
175
+        if (browser.isWebKitBased()) {
176 176
 
177 177
             // It appears that at the time of this writing, creating audio tracks blocks the browser's main thread for
178 178
             // long time on safari. Wasn't able to confirm which part of track creation does the blocking exactly, but

Chargement…
Annuler
Enregistrer