mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 20:13:21 +00:00
15 lines
324 B
JavaScript
15 lines
324 B
JavaScript
|
const { app, BrowserWindow } = require('electron');
|
||
|
|
||
|
app.setName(process.env.ELECTRON_APP_NAME || 'Antimatter Dimensions');
|
||
|
|
||
|
app.whenReady().then(() => {
|
||
|
const mainWindow = new BrowserWindow({
|
||
|
autoHideMenuBar: true,
|
||
|
});
|
||
|
mainWindow.loadFile('index.html');
|
||
|
});
|
||
|
|
||
|
app.on('window-all-closed', () => {
|
||
|
app.quit();
|
||
|
});
|