show window without 50ms timeout
Shouldn’t be needed since @ngoldman changed the <script> tag to async.
This commit is contained in:
@@ -33,10 +33,8 @@ function createMainWindow (menu) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
win.webContents.on('did-finish-load', function () {
|
win.webContents.on('did-finish-load', function () {
|
||||||
setTimeout(function () {
|
|
||||||
debug('startup time: %sms', Date.now() - app.startTime)
|
debug('startup time: %sms', Date.now() - app.startTime)
|
||||||
win.show()
|
win.show()
|
||||||
}, 50)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
win.on('blur', menu.onWindowHide)
|
win.on('blur', menu.onWindowHide)
|
||||||
|
|||||||
Reference in New Issue
Block a user