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

Commit 33429ae

Browse files
committed
Merge branch 'main' of github.com:NativePHP/electron-plugin
2 parents 0977836 + fb0e036 commit 33429ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/api/window.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ router.post('/open', (req, res) => {
9292
showDevTools,
9393
fullscreen,
9494
kiosk,
95+
autoHideMenuBar,
9596
} = req.body
9697

9798
if (state.windows[id]) {
@@ -135,7 +136,7 @@ router.post('/open', (req, res) => {
135136
titleBarStyle,
136137
vibrancy,
137138
focusable,
138-
autoHideMenuBar: true,
139+
autoHideMenuBar,
139140
...(process.platform === 'linux' ? {icon: state.icon} : {}),
140141
webPreferences: {
141142
backgroundThrottling: false,

0 commit comments

Comments
 (0)