Skip to content

Commit c093f8a

Browse files
authored
Add skipTaskbar and hiddenInMissionControl properties to window API (#240)
Enhanced the window API by including support for the `skipTaskbar` and `hiddenInMissionControl` properties, enabling more control over window visibility and behavior.
1 parent 8f16862 commit c093f8a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

resources/js/electron-plugin/dist/server/api/window.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function getWindowData(id) {
139139
};
140140
}
141141
router.post('/open', (req, res) => {
142-
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, webPreferences, } = req.body;
142+
let { id, x, y, frame, width, height, minWidth, minHeight, maxWidth, maxHeight, focusable, skipTaskbar, hiddenInMissionControl, hasShadow, url, resizable, movable, minimizable, maximizable, closable, title, alwaysOnTop, titleBarStyle, trafficLightPosition, vibrancy, backgroundColor, transparency, showDevTools, fullscreen, fullscreenable, kiosk, autoHideMenuBar, webPreferences, } = req.body;
143143
if (state.windows[id]) {
144144
state.windows[id].show();
145145
state.windows[id].focus();
@@ -179,6 +179,8 @@ router.post('/open', (req, res) => {
179179
trafficLightPosition,
180180
vibrancy,
181181
focusable,
182+
skipTaskbar,
183+
hiddenInMissionControl,
182184
autoHideMenuBar }, (process.platform === 'linux' ? { icon: state.icon } : {})), { webPreferences: Object.assign(Object.assign({}, webPreferences), defaultWebPreferences), fullscreen,
183185
fullscreenable,
184186
kiosk }));

resources/js/electron-plugin/src/server/api/window.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ router.post('/open', (req, res) => {
203203
maxWidth,
204204
maxHeight,
205205
focusable,
206+
skipTaskbar,
207+
hiddenInMissionControl,
206208
hasShadow,
207209
url,
208210
resizable,
@@ -283,6 +285,8 @@ router.post('/open', (req, res) => {
283285
trafficLightPosition,
284286
vibrancy,
285287
focusable,
288+
skipTaskbar,
289+
hiddenInMissionControl,
286290
autoHideMenuBar,
287291
...(process.platform === 'linux' ? {icon: state.icon} : {}),
288292
webPreferences: {

0 commit comments

Comments
 (0)