electron: prevent backgorund color flash

This commit is contained in:
bordun 2020-01-26 16:53:02 +01:00
parent fe6a30c5a2
commit da5e5c5d7f

View file

@ -21,7 +21,12 @@ module.exports = function(options={}) {
autoHideMenuBar: true,
webPreferences: {
nodeIntegration: !!options.node
}
},
show: false,
})
window.once('ready-to-show', ()=>{
window.show()
})
window.webContents.on('will-prevent-unload', (event)=>{