From b000c86777cb0cf6fa883fb0256410981e154ce1 Mon Sep 17 00:00:00 2001 From: Benno <107504783+BennoCrafter@users.noreply.github.com> Date: Fri, 29 Mar 2024 11:09:27 +0100 Subject: [PATCH] fix: Fix for Broken Native Menubar Example (#471) * fixed native menu example * Update examples/native-menu/main.js --------- Co-authored-by: Amaury <1293565+amaury1093@users.noreply.github.com> --- examples/native-menu/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/native-menu/main.js b/examples/native-menu/main.js index 4e85bd9..bc8be49 100755 --- a/examples/native-menu/main.js +++ b/examples/native-menu/main.js @@ -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 });