diff --git a/main.js b/main.js index ce72f1f..f59505a 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,5 @@ // Importing modules -const { app, BrowserWindow } = require('electron') +const { app, BrowserWindow, ipcMain } = require('electron') const path = require('path') // Reusable function to instantiate windows @@ -11,7 +11,7 @@ const createWindow = () => { preload: path.join(__dirname, 'preload.js'), } }) - + ipcMain.handle('ping', () => 'pong') win.loadFile('index.html') }