From 40129ee81870cdb0a60919bed4a41631df0090c7 Mon Sep 17 00:00:00 2001 From: stickyPiston Date: Sun, 15 Mar 2020 17:21:29 +0100 Subject: [PATCH] Updated electron-reload so that it reloads the electron process when needed --- main.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index d6d7de2..ca4d99f 100644 --- a/main.js +++ b/main.js @@ -1,13 +1,15 @@ const { app, BrowserWindow, ipcMain } = require('electron') const path = require('path') -require('electron-reload')(__dirname); +require('electron-reload')(__dirname, { + electron: path.join(__dirname, 'node_modules', '.bin', 'electron') +}); function createWindow () { // Create the browser window. const win = new BrowserWindow({ - width: 800, - height: 600, + width: 640, + height: 320, backgroundColor: '#111', resizable: false, frame: false,