Fix passing null as window in dialog.showMessageBox.
This commit is contained in:
parent
b9c7013469
commit
0c6997b160
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ module.exports =
|
||||||
binding.showSaveDialog window, options.title, options.defaultPath
|
binding.showSaveDialog window, options.title, options.defaultPath
|
||||||
|
|
||||||
showMessageBox: (window, options) ->
|
showMessageBox: (window, options) ->
|
||||||
if window?.constructor isnt BrowserWindow
|
if window? and window.constructor isnt BrowserWindow
|
||||||
options = window
|
options = window
|
||||||
window = null
|
window = null
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue