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 { app, BrowserWindow, ipcMain } = require('electron')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
require('electron-reload')(__dirname);
|
require('electron-reload')(__dirname, {
|
||||||
|
electron: path.join(__dirname, 'node_modules', '.bin', 'electron')
|
||||||
|
});
|
||||||
|
|
||||||
function createWindow () {
|
function createWindow () {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
width: 800,
|
width: 640,
|
||||||
height: 600,
|
height: 320,
|
||||||
backgroundColor: '#111',
|
backgroundColor: '#111',
|
||||||
resizable: false,
|
resizable: false,
|
||||||
frame: false,
|
frame: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user