From 1b565296705471a6ad9beeda214f6476b6c7b442 Mon Sep 17 00:00:00 2001 From: simonhamp Date: Fri, 15 Nov 2024 18:10:55 +0000 Subject: [PATCH] Build plugin --- resources/js/electron-plugin/dist/server/api/menuBar.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/js/electron-plugin/dist/server/api/menuBar.js b/resources/js/electron-plugin/dist/server/api/menuBar.js index 3ab7c907..c1950c4d 100644 --- a/resources/js/electron-plugin/dist/server/api/menuBar.js +++ b/resources/js/electron-plugin/dist/server/api/menuBar.js @@ -44,10 +44,14 @@ router.post("/create", (req, res) => { const tray = new Tray(icon || state.icon.replace("icon.png", "IconTemplate.png")); 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, + }, }); }); }