|
|
@@ -1,6 +1,6 @@
|
|
1
|
1
|
import { getName } from '../app';
|
|
2
|
2
|
import { translateToHTML } from '../base/i18n';
|
|
3
|
|
-import { RTCBrowserType } from '../base/lib-jitsi-meet';
|
|
|
3
|
+import { browser } from '../base/lib-jitsi-meet';
|
|
4
|
4
|
import { showWarningNotification } from '../notifications';
|
|
5
|
5
|
|
|
6
|
6
|
/**
|
|
|
@@ -11,15 +11,15 @@ import { showWarningNotification } from '../notifications';
|
|
11
|
11
|
* @returns {void}
|
|
12
|
12
|
*/
|
|
13
|
13
|
export function maybeShowSuboptimalExperienceNotification(dispatch, t) {
|
|
14
|
|
- if (!RTCBrowserType.isChrome()
|
|
15
|
|
- && !RTCBrowserType.isFirefox()
|
|
16
|
|
- && !RTCBrowserType.isNWJS()
|
|
17
|
|
- && !RTCBrowserType.isElectron()
|
|
|
14
|
+ if (!browser.isChrome()
|
|
|
15
|
+ && !browser.isFirefox()
|
|
|
16
|
+ && !browser.isNWJS()
|
|
|
17
|
+ && !browser.isElectron()
|
|
18
|
18
|
|
|
19
|
19
|
// Adding react native to the list of recommended browsers is not
|
|
20
|
20
|
// necessary for now because the function won't be executed at all
|
|
21
|
21
|
// in this case but I'm adding it for completeness.
|
|
22
|
|
- && !RTCBrowserType.isReactNative()
|
|
|
22
|
+ && !browser.isReactNative()
|
|
23
|
23
|
) {
|
|
24
|
24
|
dispatch(
|
|
25
|
25
|
showWarningNotification(
|