private export function isBrowserSupported ( ) { if ( typeof window !== 'undefined' ) { return ! ! window . OffscreenCanvas && ! ( /Mobi/i . test ( window . navigator . userAgent ) ) && ! ! window . chrome ; } else { return false ; } } example export const isSupported = isBrowserSupported ( ) ;