Skip to content

Commit

Permalink
Remove the menu bar
Browse files Browse the repository at this point in the history
  • Loading branch information
virejdasani committed May 19, 2021
1 parent e8e1fcb commit ca6f067
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const {
app,
BrowserWindow,
Tray,
globalShortcut
globalShortcut,
Menu
} = require('electron')

const path = require('path')
Expand All @@ -12,6 +13,9 @@ const assetsDirectory = path.join(__dirname, 'assets')
let tray = undefined
let window = undefined

// Hide the menu
Menu.setApplicationMenu(null);

app.on('ready', () => {
createTray()
createWindow()
Expand Down

0 comments on commit ca6f067

Please sign in to comment.