🚪 Entry Point Of Electron App

This commit is contained in:
Souleh Shaikh 2022-10-26 00:53:55 +05:30
parent 0fa76fc23d
commit eeaf344ac9

View File

@ -1,5 +1,5 @@
// 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 serve = require('electron-serve');
const loadURL = serve({ directory: 'public' });
@ -30,7 +30,7 @@ function createWindow() {
// This block of code is intended for development purpose only.
// Delete this entire block of code when you are ready to package the application.
if (isDev()) {
mainWindow.loadURL('http://localhost:5000/');
mainWindow.loadURL('http://localhost:8080/');
} else {
loadURL(mainWindow);
}
@ -75,4 +75,4 @@ app.on('activate', function () {
if (mainWindow === null) createWindow()
});
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.
// code. You can also put them in separate files and require them here.