浏览代码

fix(suboptimal): allow checks for chromium based browsers

master
Leonard Kim 5 年前
父节点
当前提交
1e39c12963
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2
    2
      interface_config.js
  2. 1
    0
      react/features/base/environment/environment.js

+ 2
- 2
interface_config.js 查看文件

172
     // Names of browsers which should show a warning stating the current browser
172
     // Names of browsers which should show a warning stating the current browser
173
     // has a suboptimal experience. Browsers which are not listed as optimal or
173
     // has a suboptimal experience. Browsers which are not listed as optimal or
174
     // unsupported are considered suboptimal. Valid values are:
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
     // Browsers, in addition to those which do not fully support WebRTC, that
178
     // Browsers, in addition to those which do not fully support WebRTC, that
179
     // are not supported and should show the unsupported browser page.
179
     // are not supported and should show the unsupported browser page.

+ 1
- 0
react/features/base/environment/environment.js 查看文件

16
 
16
 
17
 const browserNameToCheck = {
17
 const browserNameToCheck = {
18
     chrome: browser.isChrome.bind(browser),
18
     chrome: browser.isChrome.bind(browser),
19
+    chromium: browser.isChromiumBased.bind(browser),
19
     edge: browser.isEdge.bind(browser),
20
     edge: browser.isEdge.bind(browser),
20
     electron: browser.isElectron.bind(browser),
21
     electron: browser.isElectron.bind(browser),
21
     firefox: browser.isFirefox.bind(browser),
22
     firefox: browser.isFirefox.bind(browser),

正在加载...
取消
保存