electron: adapt exit warning to new version
This commit is contained in:
parent
0502882c37
commit
9a875640eb
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ module.exports = function(options={}) {
|
|||
})
|
||||
|
||||
window.webContents.on('will-prevent-unload', (event)=>{
|
||||
var choice = dialog.showMessageBox(window, {
|
||||
var choice = dialog.showMessageBoxSync(window, {
|
||||
type: 'question',
|
||||
buttons: ['Yes', 'No'],
|
||||
title: 'Are you sure ?',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue