Inline buttons and cancelId values
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 29 Nov 2016 21:30:28 +0000 (13:30 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 29 Nov 2016 21:30:28 +0000 (13:30 -0800)
lib/renderer/inspector.js

index fdb14b7..81642dd 100644 (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
   })
 }