launcher: fix height to prevent scrollbar at init

This commit is contained in:
jean-emmanuel 2018-03-01 20:50:13 +01:00
parent ac696b1bc3
commit f4bf9d8a9f

View file

@ -19,6 +19,8 @@ module.exports = function(options={}) {
backgroundColor: options.color || bgColor,
type: options.type,
fullscreen: options.fullscreen,
useContentSize: true,
autoHideMenuBar: true,
webPreferences: {
nodeIntegration: !!options.node
}
@ -54,8 +56,7 @@ module.exports = function(options={}) {
window.loadURL(options.address)
window.setMenuBarVisibility(false)
window.setMenu(null)
if (options.shortcuts) {