import { TrackJS } from '@neo-one/react-common' ; import { setConfig } from 'react-hot-loader' ; import './Modernizr' ; import '../static/css/app.css' ; setConfig ( { pureSFC : true } ) ; if ( typeof window !== 'undefined' ) { process . stdout = { isTTY : false } ; TrackJS . install ( { token : 'ccff2c276a494f0b94462cdbf6bf4518' , application : 'neo-one' , enabled : process . env . NODE_ENV === 'production' } ) ; TrackJS . addMetadata ( 'type' , 'main' ) ; window . addEventListener ( 'unhandledrejection' , ( e ) => { if ( e . reason && e . reason . name === 'Canceled' ) { e . preventDefault ( ) ; } } ) ; if ( Modernizr . serviceworker ) { window . addEventListener ( 'load' , ( ) => { navigator . serviceWorker . register ( '/sw.js' ) . catch ( ( error ) => { console . error ( error ) ; } ) ; } ) ; } }