projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ac9858
)
Inline buttons and cancelId values
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 29 Nov 2016 21:30:28 +0000
(13:30 -0800)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 29 Nov 2016 21:30:28 +0000
(13:30 -0800)
lib/renderer/inspector.js
patch
|
blob
|
history
diff --git
a/lib/renderer/inspector.js
b/lib/renderer/inspector.js
index
fdb14b7
..
81642dd
100644
(file)
--- 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
})
}