Updated electron-reload so that it reloads the electron process when needed

This commit is contained in:
corner 2020-03-15 17:21:29 +01:00
parent ee365d4c1c
commit 40129ee818
1 changed files with 5 additions and 3 deletions

View File

@ -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,