diff --git a/lib/browser/api/dialog.js b/lib/browser/api/dialog.js index ae41632e3..9e1091cf9 100644 --- a/lib/browser/api/dialog.js +++ b/lib/browser/api/dialog.js @@ -177,7 +177,7 @@ module.exports = { } } - let {buttons, cancelId, defaultId, detail, icon, message, title, type, normalizeAccessKeys} = options + let {buttons, cancelId, defaultId, detail, icon, message, title, type} = options if (type == null) { type = 'none' @@ -194,7 +194,7 @@ module.exports = { throw new TypeError('Buttons must be an array') } - if (normalizeAccessKeys) { + if (options.normalizeAccessKeys) { buttons = buttons.map(normalizeAccessKey) }