electron browserwindow get options code example
Example 1: electron specify minimum size
new BrowserWindow({
width: 800, height: 600,
minHeight: 300,
minWidth: 300,
frame:false
})
Example 2: create window electron
const createWindow = () => {
const mainWindow = new BrowserWindow({
width: 800,
height: 400,
});
mainWindow.loadFile(path.join(__dirname, 'index.html'));
};