diff --git a/lib/renderer/inspector.js b/lib/renderer/inspector.js index fdb14b717013..81642dd6cf09 100644 --- a/lib/renderer/inspector.js +++ b/lib/renderer/inspector.js @@ -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 }) }