Initial commit — Electron + React frontend, Express/Docker backend, members & project management
This commit is contained in:
15
main.js
Normal file
15
main.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const { app, BrowserWindow } = require('electron');
|
||||
const path = require('path');
|
||||
|
||||
app.whenReady().then(() => {
|
||||
const win = new BrowserWindow({
|
||||
width: 1400,
|
||||
height: 900,
|
||||
webPreferences: { nodeIntegration: false },
|
||||
titleBarStyle: 'hiddenInset', // mac-native title bar
|
||||
icon: path.join(__dirname, 'icon.png')
|
||||
});
|
||||
win.loadFile(path.join(__dirname, 'dist', 'index.html'));
|
||||
});
|
||||
|
||||
app.on('window-all-closed', () => process.platform !== 'darwin' && app.quit());
|
||||
Reference in New Issue
Block a user