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