Avoid adding a new option to webPreferences
This commit is contained in:
parent
8f0e594007
commit
31eb793fb0
8 changed files with 8 additions and 28 deletions
|
@ -93,11 +93,6 @@ BrowserWindow.prototype._init = function () {
|
|||
this.on('restore', visibilityChanged)
|
||||
this.on('maximize', visibilityChanged)
|
||||
|
||||
// Make renderer process have correct initial state.
|
||||
if (!isVisible) {
|
||||
this.webContents.mergeWebPreferences({visibilityState: 'hidden'})
|
||||
}
|
||||
|
||||
// Notify the creation of the window.
|
||||
app.emit('browser-window-created', {}, this)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue