Reputation: 133
When I press 'f11' the app will appear in the full-screen mood. How I can disable this option?
function createWindow() {
window = new BrowserWindow({
width:610,
height:679,
icon: path.join(__dirname, APP_DIR, IMG_DIR, 'icon.png'),
frame: false,
resizable: false,
webPreferences: {
nodeIntegration: true
}
});
window.loadURL(url.format({
pathname: path.join(__dirname, APP_DIR, 'index.html'),
protocol: 'file:',
slashes: true
}));
}
Upvotes: 3
Views: 3138
Reputation: 4854
fullscreenable
Boolean (optional) - Whether the window can be put into fullscreen mode. On macOS, also whether the maximize/zoom button should toggle full screen mode or maximize window. Default is true.
From: BrowserWindow
window = new BrowserWindow({
width:610,
height:679,
icon: path.join(__dirname, APP_DIR, IMG_DIR, 'icon.png'),
frame: false,
fullscreenable: false,
webPreferences: {
nodeIntegration: true
}
});
Upvotes: 4