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

Commit 6e70bf0

Browse files
committed
Disable maximization
Thanks, electron/electron#11736
1 parent 04483c3 commit 6e70bf0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ function createWindow() { // Create the browser window.
4646
// and load the index.html of the app.
4747
win.loadFile("src/clip.html");
4848

49+
win.unmaximize();
50+
win.setResizable(false);
51+
win.on('maximize', () => mainWindow.unmaximize());
52+
4953
// Open the DevTools.
5054
//win.webContents.openDevTools();
5155

0 commit comments

Comments
 (0)