Переглянути джерело

fix(suboptimal): allow checks for chromium based browsers

master
Leonard Kim 5 роки тому
джерело
коміт
1e39c12963

+ 2
- 2
interface_config.js Переглянути файл

@@ -172,8 +172,8 @@ var interfaceConfig = {
172 172
     // Names of browsers which should show a warning stating the current browser
173 173
     // has a suboptimal experience. Browsers which are not listed as optimal or
174 174
     // unsupported are considered suboptimal. Valid values are:
175
-    // chrome, edge, electron, firefox, nwjs, opera, safari
176
-    OPTIMAL_BROWSERS: [ 'chrome', 'firefox', 'nwjs', 'electron' ],
175
+    // chrome, chromium, edge, electron, firefox, nwjs, opera, safari
176
+    OPTIMAL_BROWSERS: [ 'chrome', 'chromium', 'firefox', 'nwjs', 'electron' ],
177 177
 
178 178
     // Browsers, in addition to those which do not fully support WebRTC, that
179 179
     // are not supported and should show the unsupported browser page.

+ 1
- 0
react/features/base/environment/environment.js Переглянути файл

@@ -16,6 +16,7 @@ const DEFAULT_UNSUPPORTED_BROWSERS = [];
16 16
 
17 17
 const browserNameToCheck = {
18 18
     chrome: browser.isChrome.bind(browser),
19
+    chromium: browser.isChromiumBased.bind(browser),
19 20
     edge: browser.isEdge.bind(browser),
20 21
     electron: browser.isElectron.bind(browser),
21 22
     firefox: browser.isFirefox.bind(browser),

Завантаження…
Відмінити
Зберегти