🚪 Entry Point Of Electron App
This commit is contained in:
parent
0fa76fc23d
commit
eeaf344ac9
4
main.js
4
main.js
@ -1,5 +1,5 @@
|
|||||||
// Modules to control application life and create native browser window
|
// Modules to control application life and create native browser window
|
||||||
const { app, BrowserWindow, dialog } = require('electron');
|
const { app, BrowserWindow } = require('electron');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const serve = require('electron-serve');
|
const serve = require('electron-serve');
|
||||||
const loadURL = serve({ directory: 'public' });
|
const loadURL = serve({ directory: 'public' });
|
||||||
@ -30,7 +30,7 @@ function createWindow() {
|
|||||||
// This block of code is intended for development purpose only.
|
// This block of code is intended for development purpose only.
|
||||||
// Delete this entire block of code when you are ready to package the application.
|
// Delete this entire block of code when you are ready to package the application.
|
||||||
if (isDev()) {
|
if (isDev()) {
|
||||||
mainWindow.loadURL('http://localhost:5000/');
|
mainWindow.loadURL('http://localhost:8080/');
|
||||||
} else {
|
} else {
|
||||||
loadURL(mainWindow);
|
loadURL(mainWindow);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user