123456789101112131415 |
- const { app, BrowserWindow } = require('electron')
- function createWindow () {
- const win = new BrowserWindow({
- // remove the default titlebar
- titleBarStyle: 'hidden',
- // expose window controlls in Windows/Linux
- ...(process.platform !== 'darwin' ? { titleBarOverlay: true } : {})
- })
- win.loadURL('https://example.com')
- }
- app.whenReady().then(() => {
- createWindow()
- })
|