Skip to content

Commit

Permalink
Pass click event parameters correctly (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp authored Nov 15, 2024
1 parent 0ef5a30 commit 860eddf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions resources/js/electron-plugin/src/server/api/menuBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ router.post("/create", (req, res) => {
tray.setContextMenu(buildMenu(contextMenu));

if (event) {
tray.on('click', (e) => {
tray.on('click', (combo, bounds, position) => {
notifyLaravel('events', {
event,
payload: e,
payload: {
combo,
bounds,
position,
},
});
});
}
Expand Down

0 comments on commit 860eddf

Please sign in to comment.