diff --git a/resources/js/electron-plugin/dist/server/api/app.js b/resources/js/electron-plugin/dist/server/api/app.js index 5d20ad3f..b43f7388 100644 --- a/resources/js/electron-plugin/dist/server/api/app.js +++ b/resources/js/electron-plugin/dist/server/api/app.js @@ -5,6 +5,10 @@ router.post('/quit', (req, res) => { app.quit(); res.sendStatus(200); }); +router.post('/relaunch', (req, res) => { + app.relaunch(); + app.quit(); +}); router.post('/show', (req, res) => { app.show(); res.sendStatus(200); diff --git a/resources/js/electron-plugin/src/server/api/app.ts b/resources/js/electron-plugin/src/server/api/app.ts index 7b7f7ca9..19fe1850 100644 --- a/resources/js/electron-plugin/src/server/api/app.ts +++ b/resources/js/electron-plugin/src/server/api/app.ts @@ -7,6 +7,11 @@ router.post('/quit', (req, res) => { res.sendStatus(200); }); +router.post('/relaunch', (req, res) => { + app.relaunch() + app.quit() +}); + router.post('/show', (req, res) => { app.show() res.sendStatus(200);