import queryString from 'query-string' ; const query = queryString . parseUrl ( window . location . href ) . query ; const port = ( query && Number ( query . port ) ) || 1349 ; const userAgent = navigator . userAgent . toLowerCase ( ) ; let isElectron = false ; if ( userAgent . indexOf ( ' electron/' ) > - 1 ) { isElectron = true ; } export default { apiAddress : `http://localhost:${ port }/` , isDev : process && process . env && process . env . NODE_ENV === 'development' , isElectron } ;