Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 4c3f5ee

Browse files
committed
Support for fullscreen and kiosk window
1 parent cc89413 commit 4c3f5ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/server/api/window.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ router.post('/open', (req, res) => {
8383
backgroundColor,
8484
transparency,
8585
showDevTools,
86+
fullscreen,
87+
kiosk,
8688
} = req.body
8789

8890
if (state.windows[id]) {
@@ -135,7 +137,9 @@ router.post('/open', (req, res) => {
135137
sandbox: false,
136138
contextIsolation: false,
137139
nodeIntegration: true,
138-
}
140+
},
141+
fullscreen,
142+
kiosk,
139143
})
140144

141145
if ((process.env.NODE_ENV === 'development' || showDevTools === true) && showDevTools !== false) {

0 commit comments

Comments
 (0)