From 72e559458f8e7df10b51a40f87b35e9f47991642 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 29 Nov 2016 13:30:28 -0800 Subject: [PATCH] Inline buttons and cancelId values --- lib/renderer/inspector.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 }) }