Including electron to eliminate Electron not found err sg
This commit is contained in:
2
main.ts
2
main.ts
@@ -27,7 +27,7 @@ function createWindow() {
|
|||||||
|
|
||||||
if (serve) {
|
if (serve) {
|
||||||
require('electron-reload')(__dirname, {
|
require('electron-reload')(__dirname, {
|
||||||
});
|
electron: require(`${__dirname}/node_modules/electron`)});
|
||||||
win.loadURL('http://localhost:4200');
|
win.loadURL('http://localhost:4200');
|
||||||
} else {
|
} else {
|
||||||
win.loadURL(url.format({
|
win.loadURL(url.format({
|
||||||
|
|||||||
Reference in New Issue
Block a user