fix(suboptimal): allow checks for chromium based browsers
This commit is contained in:
parent
243fdba80f
commit
1e39c12963
|
@ -172,8 +172,8 @@ var interfaceConfig = {
|
||||||
// Names of browsers which should show a warning stating the current browser
|
// Names of browsers which should show a warning stating the current browser
|
||||||
// has a suboptimal experience. Browsers which are not listed as optimal or
|
// has a suboptimal experience. Browsers which are not listed as optimal or
|
||||||
// unsupported are considered suboptimal. Valid values are:
|
// unsupported are considered suboptimal. Valid values are:
|
||||||
// chrome, edge, electron, firefox, nwjs, opera, safari
|
// chrome, chromium, edge, electron, firefox, nwjs, opera, safari
|
||||||
OPTIMAL_BROWSERS: [ 'chrome', 'firefox', 'nwjs', 'electron' ],
|
OPTIMAL_BROWSERS: [ 'chrome', 'chromium', 'firefox', 'nwjs', 'electron' ],
|
||||||
|
|
||||||
// Browsers, in addition to those which do not fully support WebRTC, that
|
// Browsers, in addition to those which do not fully support WebRTC, that
|
||||||
// are not supported and should show the unsupported browser page.
|
// are not supported and should show the unsupported browser page.
|
||||||
|
|
|
@ -16,6 +16,7 @@ const DEFAULT_UNSUPPORTED_BROWSERS = [];
|
||||||
|
|
||||||
const browserNameToCheck = {
|
const browserNameToCheck = {
|
||||||
chrome: browser.isChrome.bind(browser),
|
chrome: browser.isChrome.bind(browser),
|
||||||
|
chromium: browser.isChromiumBased.bind(browser),
|
||||||
edge: browser.isEdge.bind(browser),
|
edge: browser.isEdge.bind(browser),
|
||||||
electron: browser.isElectron.bind(browser),
|
electron: browser.isElectron.bind(browser),
|
||||||
firefox: browser.isFirefox.bind(browser),
|
firefox: browser.isFirefox.bind(browser),
|
||||||
|
|
Loading…
Reference in New Issue