import { app } from 'electron' ; import { track } from './index' ; import { appName } from './format' ; const g = global as any ; g . track = { screenview ( screen ) { track . screenview ( screen , appName ( ) , app . getVersion ( ) ) ; } , event ( category , action , label = null , value = null ) { track . event ( category , action , label , value ) ; } } as ITracker ;