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, + }, }); }); }