Browse Source

fix: permission handler regression in default app (#17927)

Milan Burda 6 years ago
parent
commit
f7a38ec72a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      default_app/default_app.ts

+ 1 - 1
default_app/default_app.ts

@@ -81,7 +81,7 @@ async function createWindow () {
       cancelId: 1
     }
 
-    dialog.showMessageBox(mainWindow!, options).then(response => {
+    dialog.showMessageBox(mainWindow!, options).then(({ response }) => {
       done(response === 0)
     })
   })