export const isChrome = () => {
const isChromium = window.chrome
const winNav = window.navigator
const vendorName = winNav.vendor
const isOpera = typeof window.opr !== 'undefined'
const isIEedge = winNav.userAgent.indexOf('Edge') > -1
const isIOSChrome = winNav.userAgent.match('CriOS')
return (
isIOSChrome ||
(isChromium !== null &&
typeof isChromium !== 'undefined' &&
vendorName === 'Google Inc.' &&
isOpera === false &&
isIEedge === false)
)
}