Fix places where Window should be BrowserWindow.

This commit is contained in:
Cheng Zhao 2013-05-15 22:17:27 +08:00
parent 06142aa2e8
commit 64a8664ffe
2 changed files with 3 additions and 2 deletions

View file

@ -67,7 +67,7 @@ module.exports =
selectFileWrap args..., 4, 'Open Files'
showMessageBox: (window, options) ->
throw new TypeError('Need Window object') unless window.constructor is Window
throw new TypeError('Need Window object') unless window.constructor is BrowserWindow
options = {} unless options?
options.type = options.type ? module.exports.MESSAGE_BOX_NONE