From 860eddf0fbf066230b3d69a8ae3ed9dadab2350d Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Fri, 15 Nov 2024 18:10:14 +0000 Subject: [PATCH] Pass click event parameters correctly (#134) --- resources/js/electron-plugin/src/server/api/menuBar.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/js/electron-plugin/src/server/api/menuBar.ts b/resources/js/electron-plugin/src/server/api/menuBar.ts index 48ba9423..8d9b19a6 100644 --- a/resources/js/electron-plugin/src/server/api/menuBar.ts +++ b/resources/js/electron-plugin/src/server/api/menuBar.ts @@ -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, + }, }); }); }