Fix places where Window should be BrowserWindow.
This commit is contained in:
parent
06142aa2e8
commit
64a8664ffe
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue