Last active
November 12, 2020 09:50
-
-
Save dmnsgn/cc9d5aa71d691dfacd152a68a025e3ae to your computer and use it in GitHub Desktop.
Resize Electron window from devtools in renderer process.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { remote } = require("electron"); | |
remote.getCurrentWindow().setBounds({ | |
x: 0, | |
y: 0, | |
width: 1920, | |
height: 1080, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment