fix: quit after Chromium is fully started (#21488)

* fix: quit when chromium is fully started

* test: remove hacks on app.quit

* chore: RunUntilIdle is unnecessary
This commit is contained in:
Cheng Zhao 2019-12-13 18:57:02 +09:00 committed by GitHub
parent b9a250a623
commit f9a1dc10fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 17 deletions

View file

@ -2,5 +2,5 @@ const { app, webContents } = require('electron')
app.on('ready', function () {
webContents.create({})
process.nextTick(() => app.quit())
app.quit()
})