Updated electron-reload so that it reloads the electron process when needed
This commit is contained in:
parent
ee365d4c1c
commit
40129ee818
8
main.js
8
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,
|
||||
|
Loading…
Reference in New Issue
Block a user