Inline buttons and cancelId values

This commit is contained in:
Kevin Sawicki 2016-11-29 13:30:28 -08:00
parent 3ac9858726
commit 72e559458f

View file

@ -8,17 +8,14 @@ window.onload = function () {
window.confirm = function (message, title) {
const {dialog} = require('electron').remote
let buttons, cancelId
if (title == null) {
title = ''
}
buttons = ['OK', 'Cancel']
cancelId = 1
return !dialog.showMessageBox({
message: message,
title: title,
buttons: buttons,
cancelId: cancelId
buttons: ['OK', 'Cancel'],
cancelId: 1
})
}