8000 Add maximize API endpoint, to maximize screen · NativePHP/electron-plugin@4e964c1 · GitHub
[go: up one dir, main page]

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

Commit 4e964c1

Browse files
committed
Add maximize API endpoint, to maximize screen
1 parent 4c3f5ee commit 4e964c1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/server/api/window.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ import {notifyLaravel} from "../utils";
66
const router = express.Router();
77
import windowStateKeeper from "electron-window-state";
88

9+
router.post('/maximize', (req, res) => {
10+
const {id} = req.body
11+
state.windows[id]?.maximize()
12+
13+
res.sendStatus(200)
14+
});
15+
916
router.post('/resize', (req, res) => {
1017
const {id, width, height} = req.body
1118

0 commit comments

Comments
 (0)
0