diff --git a/default_app/default_app.ts b/default_app/default_app.ts index a7924cbd569e..b81bee81d9ec 100644 --- a/default_app/default_app.ts +++ b/default_app/default_app.ts @@ -81,7 +81,7 @@ async function createWindow () { cancelId: 1 } - dialog.showMessageBox(mainWindow!, options, (response) => { + dialog.showMessageBox(mainWindow!, options).then(response => { done(response === 0) }) })