🚪 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 // 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);
} }