Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dmnsgn/cc9d5aa71d691dfacd152a68a025e3ae to your computer and use it in GitHub Desktop.
Save dmnsgn/cc9d5aa71d691dfacd152a68a025e3ae to your computer and use it in GitHub Desktop.
Resize Electron window from devtools in renderer process.
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