@@ -29,10 +29,10 @@ router.post('/position', (req, res) => {
29
29
res . sendStatus ( 200 ) ;
30
30
} ) ;
31
31
router . post ( '/reload' , ( req , res ) => {
32
- var _a ;
33
- const { id } = req . body ;
34
- ( _a = state_1 . default . windows [ id ] ) === null || _a === void 0 ? void 0 : _a . reload ( ) ;
35
- res . sendStatus ( 200 ) ;
32
+ var _a ;
33
+ const { id } = req . body ;
34
+ ( _a = state_1 . default . windows [ id ] ) === null || _a === void 0 ? void 0 : _a . reload ( ) ;
35
+ res . sendStatus ( 200 ) ;
36
36
} ) ;
37
37
router . post ( '/close' , ( req , res ) => {
38
38
const { id } = req . body ;
@@ -69,7 +69,7 @@ router.post('/always-on-top', (req, res) => {
69
69
res . sendStatus ( 200 ) ;
70
70
} ) ;
71
71
router . post ( '/open' , ( req , res ) => {
72
- 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 ;
72
+ 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 ;
73
73
if ( state_1 . default . windows [ id ] ) {
74
74
state_1 . default . windows [ id ] . show ( ) ;
75
75
state_1 . default . windows [ id ] . focus ( ) ;
@@ -93,6 +93,7 @@ router.post('/open', (req, res) => {
93
93
closable,
94
94
hasShadow,
95
95
titleBarStyle,
96
+ trafficLightPosition,
96
97
vibrancy,
97
98
focusable,
98
99
autoHideMenuBar } , ( process . platform === 'linux' ? { icon : state_1 . default . icon } : { } ) ) , { webPreferences : {
0 commit comments