diff --git a/dist/server/api/window.js b/dist/server/api/window.js index a3535c7..c597c41 100644 --- a/dist/server/api/window.js +++ b/dist/server/api/window.js @@ -29,10 +29,10 @@ router.post('/position', (req, res) => { res.sendStatus(200); }); router.post('/reload', (req, res) => { - var _a; - const { id } = req.body; - (_a = state_1.default.windows[id]) === null || _a === void 0 ? void 0 : _a.reload(); - res.sendStatus(200); + var _a; + const { id } = req.body; + (_a = state_1.default.windows[id]) === null || _a === void 0 ? void 0 : _a.reload(); + res.sendStatus(200); }); router.post('/close', (req, res) => { const { id } = req.body; @@ -69,7 +69,7 @@ router.post('/always-on-top', (req, res) => { res.sendStatus(200); }); router.post('/open', (req, res) => { - let { id, x, y, frame, width, height, minWidth, minHeight, maxWidth, maxHeight, focusable, hasShadow, url, resizable, movable, minimizable, maximizable, closable, title, alwaysOnTop, titleBarStyle, vibrancy, backgroundColor, transparency, showDevTools, fullscreen, kiosk, autoHideMenuBar, } = req.body; + let { id, x, y, frame, width, height, minWidth, minHeight, maxWidth, maxHeight, focusable, hasShadow, url, resizable, movable, minimizable, maximizable, closable, title, alwaysOnTop, titleBarStyle, trafficLightPosition, vibrancy, backgroundColor, transparency, showDevTools, fullscreen, kiosk, autoHideMenuBar, } = req.body; if (state_1.default.windows[id]) { state_1.default.windows[id].show(); state_1.default.windows[id].focus(); @@ -93,6 +93,7 @@ router.post('/open', (req, res) => { closable, hasShadow, titleBarStyle, + trafficLightPosition, vibrancy, focusable, autoHideMenuBar }, (process.platform === 'linux' ? { icon: state_1.default.icon } : {})), { webPreferences: { diff --git a/src/server/api/window.ts b/src/server/api/window.ts index f7b5e0b..666f853 100644 --- a/src/server/api/window.ts +++ b/src/server/api/window.ts @@ -102,6 +102,7 @@ router.post('/open', (req, res) => { title, alwaysOnTop, titleBarStyle, + trafficLightPosition, vibrancy, backgroundColor, transparency, @@ -151,6 +152,7 @@ router.post('/open', (req, res) => { closable, hasShadow, titleBarStyle, + trafficLightPosition, vibrancy, focusable, autoHideMenuBar,