Fix passing null as window in dialog.showMessageBox.

This commit is contained in:
Cheng Zhao 2013-06-27 19:18:31 +08:00
parent b9c7013469
commit 0c6997b160

View file

@ -31,7 +31,7 @@ module.exports =
binding.showSaveDialog window, options.title, options.defaultPath
showMessageBox: (window, options) ->
if window?.constructor isnt BrowserWindow
if window? and window.constructor isnt BrowserWindow
options = window
window = null