Skip to content

Commit

Permalink
No menu bar in production
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Jun 18, 2020
1 parent 9086e87 commit 2eb6627
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ function createWindow () {
}
})

if (process.env.NODE_ENV === 'production') {
// No menu bar in production
mainWindow.removeMenu()
}

mainWindow.loadURL(winURL)

// Open dev tools initially when in development mode
Expand Down

0 comments on commit 2eb6627

Please sign in to comment.