function useColors() {
    // NB: In an Electron preload script, document will be defined but not fully
    // initialized. Since we know we're in Chrome, we'll just detect this case
    // explicitly
    if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') return true;
    // is webkit? http://stackoverflow.com/a/16459606/376773
    // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
    return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
}
/**
 * Currently only WebKit-based Web Inspectors, Firefox >= v31,
 * and the Firebug extension (any Firefox version) are known
 * to support "%c" CSS customizations.
 *
 * TODO: add a `localStorage` variable to explicitly enable/disable colors
 */
Currently only WebKit-based Web Inspectors, Firefox >= v31,
and the Firebug extension (any Firefox version) are known
to support "%c" CSS customizations.

add a `localStorage` variable to explicitly enable/disable colors
Currently only WebKit - based Web Inspectors Firefox > = v31 and the Firebug extension ( any Firefox version ) are known to support " %c " CSS customizations . add a ` localStorage ` variable to explicitly enable / disable colors
function useColors() {
    if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') return true;
    return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
}
function useColors ( ) { if ( typeof window !== 'undefined' && window . process && window . process . type === 'renderer' ) return true ; return typeof document !== 'undefined' && document . documentElement && document . documentElement . style && document . documentElement . style . WebkitAppearance || typeof window !== 'undefined' && window . console && ( window . console . firebug || window . console . exception && window . console . table ) || typeof navigator !== 'undefined' && navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / firefox\/(\d+) / ) && parseInt ( RegExp . $1 , 10 ) >= 31 || typeof navigator !== 'undefined' && navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / applewebkit\/(\d+) / ) ; }
Currently only WebKit-based Web Inspectors, Firefox >= v31,
 and the Firebug extension (any Firefox version) are known
 to support "%c" CSS customizations.
Currently only WebKit - based Web Inspectors Firefox > = v31 and the Firebug extension ( any Firefox version ) are known to support " %c " CSS customizations .
// NB: In an Electron preload script, document will be defined but not fully // initialized. Since we know we're in Chrome, we'll just detect this case // explicitly // is webkit? http://stackoverflow.com/a/16459606/376773 // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632