show window without 50ms timeout
Shouldn’t be needed since @ngoldman changed the <script> tag to async.
This commit is contained in:
parent
dc26a87e0c
commit
1ea055eb4a
1 changed files with 2 additions and 4 deletions
|
|
@ -33,10 +33,8 @@ function createMainWindow (menu) {
|
|||
})
|
||||
|
||||
win.webContents.on('did-finish-load', function () {
|
||||
setTimeout(function () {
|
||||
debug('startup time: %sms', Date.now() - app.startTime)
|
||||
win.show()
|
||||
}, 50)
|
||||
debug('startup time: %sms', Date.now() - app.startTime)
|
||||
win.show()
|
||||
})
|
||||
|
||||
win.on('blur', menu.onWindowHide)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue