import { app , BrowserWindow } from 'electron' ; let mainWindow ; const createWindow = ( ) : void => { mainWindow = new BrowserWindow ( { width : 1400 , height : 809 , webPreferences : { nodeIntegration : true , enableRemoteModule : true , } , } ) ; mainWindow . loadFile ( 'index.html' ) ; mainWindow . on ( 'closed' , ( ) => { mainWindow = null ; } ) ; } ; const onReady = ( ) : void => { createWindow ( ) ; } ; /**
 * There is a potential issue with Electron version 9+ when trying to use Redux Dev Tools
 * https://github.com/electron/electron/issues/24011
 * https://github.com/electron/electron/issues/24638
 */ app . on ( 'ready' , onReady ) ;