import * as path from 'path' ; import { format as formatURL } from 'url' ; import Environment from '@common/environment' ; import { Settings } from '@common/settings' ; import Window from './window' ; class Route extends Window { load ( ) { console . log ( "route :: load" , __dirname ) ; const route = this . name ; if ( false ) { } else { let url = formatURL ( { pathname : path . join ( __dirname , "../renderer/index.html" ) , protocol : 'file' , slashes : true , query : { route , } } ) ; console . log ( "route :: production :: url" , url ) ; this . window . loadURL ( url ) ; } } } export default Route ;