electron/docs/fiddles/features/window-customization/custom-title-bar/remove-title-bar/main.js

14 lines
270 B
JavaScript

const { app, BrowserWindow } = require('electron')
function createWindow () {
const win = new BrowserWindow({
// remove the default titlebar
titleBarStyle: 'hidden'
})
win.loadURL('https://example.com')
}
app.whenReady().then(() => {
createWindow()
})