Skip to content

Commit

Permalink
fix: Fix for Broken Native Menubar Example (#471)
Browse files Browse the repository at this point in the history
* fixed native menu example

* Update examples/native-menu/main.js

---------

Co-authored-by: Amaury <[email protected]>
  • Loading branch information
BennoCrafter and amaury1093 authored Mar 29, 2024
1 parent ba5ceb9 commit b000c86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/native-menu/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ app.on('ready', () => {
});

mb.on('ready', () => {
// needed for macos to remove white screen
// ref: https://github.com/max-mapper/menubar/issues/345
tray.removeAllListeners();

console.log('Menubar app is ready.');
// your app code here
});
Expand Down

0 comments on commit b000c86

Please sign in to comment.