@@ -16,6 +16,12 @@ router.post('/maximize', (req, res) => {
16
16
( _a = state_1 . default . windows [ id ] ) === null || _a === void 0 ? void 0 : _a . maximize ( ) ;
17
17
res . sendStatus ( 200 ) ;
18
18
} ) ;
19
+ router . post ( '/minimize' , ( req , res ) => {
20
+ var _a ;
21
+ const { id } = req . body ;
22
+ ( _a = state_1 . default . windows [ id ] ) === null || _a === void 0 ? void 0 : _a . minimize ( ) ;
23
+ res . sendStatus ( 200 ) ;
24
+ } ) ;
19
25
router . post ( '/resize' , ( req , res ) => {
20
26
var _a ;
21
27
const { id, width, height } = req . body ;
@@ -69,7 +75,7 @@ router.post('/always-on-top', (req, res) => {
69
75
res . sendStatus ( 200 ) ;
70
76
} ) ;
71
77
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, trafficLightPosition, vibrancy, backgroundColor, transparency, showDevTools, fullscreen, kiosk, autoHideMenuBar, } = req . body ;
78
+ 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, fullscreenable , kiosk, autoHideMenuBar, } = req . body ;
73
79
if ( state_1 . default . windows [ id ] ) {
74
80
state_1 . default . windows [ id ] . show ( ) ;
75
81
state_1 . default . windows [ id ] . focus ( ) ;
@@ -104,6 +110,7 @@ router.post('/open', (req, res) => {
104
110
contextIsolation : false ,
105
111
nodeIntegration : true ,
106
112
} , fullscreen,
113
+ fullscreenable,
107
114
kiosk } ) ) ;
108
115
if ( ( process . env . NODE_ENV === 'development' || showDevTools === true ) && showDevTools !== false ) {
109
116
window . webContents . openDevTools ( ) ;
0 commit comments