From 66af0fe4a2b920c0f81c79c6665e805d7f002f6c Mon Sep 17 00:00:00 2001 From: simonhamp Date: Sun, 29 Dec 2024 21:47:46 +0000 Subject: [PATCH] Build plugin --- resources/js/electron-plugin/dist/server/api/window.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/js/electron-plugin/dist/server/api/window.js b/resources/js/electron-plugin/dist/server/api/window.js index 5234a653..d53665fa 100644 --- a/resources/js/electron-plugin/dist/server/api/window.js +++ b/resources/js/electron-plugin/dist/server/api/window.js @@ -79,6 +79,13 @@ router.post('/hide', (req, res) => { } return res.sendStatus(200); }); +router.post('/show', (req, res) => { + const { id } = req.body; + if (state.windows[id]) { + state.windows[id].show(); + } + return res.sendStatus(200); +}); router.post('/always-on-top', (req, res) => { var _a; const { id, alwaysOnTop } = req.body;