depot/third_party/nixpkgs/pkgs/by-name/an/antimatter-dimensions/app.js
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

14 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();
});