electron: prevent backgorund color flash
This commit is contained in:
parent
fe6a30c5a2
commit
da5e5c5d7f
1 changed files with 6 additions and 1 deletions
|
|
@ -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)=>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue