electron: prevent backgorund color flash

This commit is contained in:
bordun 2020-01-26 16:53:02 +01:00
parent 0b1884fdf8
commit 91585ce56c

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)=>{