Merge pull request #636 from kitematic/master
Fixing dialog api parameter parsing
This commit is contained in:
commit
eb55f1cf47
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ module.exports =
|
||||||
window,
|
window,
|
||||||
wrappedCallback
|
wrappedCallback
|
||||||
|
|
||||||
showSaveDialog: (window, options, callback) ->
|
showSaveDialog: (args...) ->
|
||||||
[window, options, callback] = parseArgs args...
|
[window, options, callback] = parseArgs args...
|
||||||
|
|
||||||
options ?= title: 'Save'
|
options ?= title: 'Save'
|
||||||
|
@ -71,7 +71,7 @@ module.exports =
|
||||||
window,
|
window,
|
||||||
wrappedCallback
|
wrappedCallback
|
||||||
|
|
||||||
showMessageBox: (window, options, callback) ->
|
showMessageBox: (args...) ->
|
||||||
[window, options, callback] = parseArgs args...
|
[window, options, callback] = parseArgs args...
|
||||||
|
|
||||||
options ?= type: 'none'
|
options ?= type: 'none'
|
||||||
|
|
Loading…
Reference in a new issue