Skip to content

Commit df11d27

Browse files
committed
ready to share
1 parent d909615 commit df11d27

File tree

3 files changed

+16
-32460
lines changed

3 files changed

+16
-32460
lines changed

electron/Main.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { app, BrowserWindow, ipcMain } from 'electron';
22
import './routes/user';
33
import './routes/dashboard';
44
import './routes/data';
5+
import path from 'path';
56

67
const ipc = ipcMain;
78

@@ -30,14 +31,10 @@ const createWindow = () => {
3031
});
3132

3233
// Development: load the application window to port 8080
33-
// win.loadURL('http://localhost:8080/');
34-
win.loadFile(path.resolve('./resources/app/index.html').replace(/\\/g, '/'));
35-
// win.loadURL(`file://${path.join(__dirname, './dist/index.html')}`);
34+
win.loadURL('http://localhost:8080/');
3635

37-
// win.webContents.on('did-finish-load', () => {
38-
// console.log('content loaded');
39-
// win.webContents.executeJavaScript(`console.log(${remote})`);
40-
// });
36+
//Production
37+
// win.loadFile(path.resolve('./resources/app/index.html').replace(/\\/g, '/'));
4138

4239
ipc.on('max', () => {
4340
if (!win.isMaximized()) win.maximize();

0 commit comments

Comments
 (0)