Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit d11ba10

Browse files
committed
Dispatch events via notifyLaravel util to also menubar windows
1 parent 7d98bde commit d11ba10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/server/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ export async function notifyLaravel(endpoint: string, payload = {}) {
3030
Object.values(state.windows).forEach(window => {
3131
window.webContents.send('native-event', payload);
3232
})
33+
34+
if (state.activeMenuBar?.window) {
35+
state.activeMenuBar.window.webContents.send('native-event', payload)
36+
}
3337
}
3438
}
3539

0 commit comments

Comments
 (0)