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

Commit

Permalink
Add support for managing multiple window states. Fixes NativePHP/lara…
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Jul 29, 2023
1 parent 1b43a7d commit 83f13af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/server/api/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ router.post('/open', (req, res) => {
let windowState = undefined;
if (req.body.rememberState === true) {
windowState = (0, electron_window_state_1.default)({
file: `window-state-${id}.json`,
defaultHeight: parseInt(height),
defaultWidth: parseInt(width),
});
Expand Down
1 change: 1 addition & 0 deletions src/server/api/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ router.post('/open', (req, res) => {

if (req.body.rememberState === true) {
windowState = windowStateKeeper({
file: `window-state-${id}.json`,
defaultHeight: parseInt(height),
defaultWidth: parseInt(width),
})
Expand Down

0 comments on commit 83f13af

Please sign in to comment.