2019-12-09 19:17:36 +00:00
|
|
|
const { app, BrowserWindow } = require('electron')
|
|
|
|
|
|
|
|
let win
|
2020-02-03 22:43:22 +00:00
|
|
|
app.whenReady().then(function () {
|
2019-12-09 19:17:36 +00:00
|
|
|
win = new BrowserWindow({})
|
|
|
|
win.loadURL('about:blank')
|
|
|
|
win.setMenu(null)
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
if (win.isMenuBarVisible()) {
|
|
|
|
console.log('Window has a menu')
|
|
|
|
} else {
|
|
|
|
console.log('Window has no menu')
|
|
|
|
}
|
|
|
|
app.quit()
|
|
|
|
})
|
|
|
|
})
|