diff --git a/resources/js/electron-plugin/dist/server/api/window.js b/resources/js/electron-plugin/dist/server/api/window.js index 69bcfa4..b94d377 100644 --- a/resources/js/electron-plugin/dist/server/api/window.js +++ b/resources/js/electron-plugin/dist/server/api/window.js @@ -163,7 +163,11 @@ router.post('/open', (req, res) => { defaultWidth: parseInt(width), }); } - const window = new BrowserWindow(Object.assign(Object.assign({ width: (windowState === null || windowState === void 0 ? void 0 : windowState.width) || parseInt(width), height: (windowState === null || windowState === void 0 ? void 0 : windowState.height) || parseInt(height), frame: frame !== undefined ? frame : true, x: (windowState === null || windowState === void 0 ? void 0 : windowState.x) || x, y: (windowState === null || windowState === void 0 ? void 0 : windowState.y) || y, minWidth: minWidth, minHeight: minHeight, maxWidth: maxWidth, maxHeight: maxHeight, show: false, title, + const window = new BrowserWindow(Object.assign(Object.assign({ width: resizable + ? (windowState === null || windowState === void 0 ? void 0 : windowState.width) || parseInt(width) + : parseInt(width), height: resizable + ? (windowState === null || windowState === void 0 ? void 0 : windowState.height) || parseInt(height) + : parseInt(height), frame: frame !== undefined ? frame : true, x: (windowState === null || windowState === void 0 ? void 0 : windowState.x) || x, y: (windowState === null || windowState === void 0 ? void 0 : windowState.y) || y, minWidth: minWidth, minHeight: minHeight, maxWidth: maxWidth, maxHeight: maxHeight, show: false, title, backgroundColor, transparent: transparency, alwaysOnTop, resizable, movable, diff --git a/resources/js/electron-plugin/src/server/api/window.ts b/resources/js/electron-plugin/src/server/api/window.ts index 9c472be..3ee8083 100644 --- a/resources/js/electron-plugin/src/server/api/window.ts +++ b/resources/js/electron-plugin/src/server/api/window.ts @@ -255,8 +255,12 @@ router.post('/open', (req, res) => { } const window = new BrowserWindow({ - width: windowState?.width || parseInt(width), - height: windowState?.height || parseInt(height), + width: resizable + ? windowState?.width || parseInt(width) + : parseInt(width), + height: resizable + ? windowState?.height || parseInt(height) + : parseInt(height), frame: frame !== undefined ? frame : true, x: windowState?.x || x, y: windowState?.y || y,