/**
 * This module is responsible on handling all the inter process communications
 * between the frontend to the electron backend.
 */ import { app , ipcMain } from 'electron' ; import { environment } from '../../environments/environment' ; export default class ElectronEvents { static bootstrapElectronEvents ( ) { return ipcMain ; } } ipcMain . handle ( 'get-app-version' , ( event ) => { console . log ( `Fetching application version... [v${ environment . version }]` ) ; return environment . version ; } ) ; ipcMain . on ( 'quit' , ( event , code ) => { app . exit ( code ) ; } ) ;