Merge pull request #1814 from fraserxu/master

convert message to string for window.alert method
This commit is contained in:
Cheng Zhao 2015-06-03 10:20:59 +08:00
commit f22d4bf0c0

View file

@ -62,6 +62,7 @@ window.open = (url, frameName='', features='') ->
window.alert = (message, title='') -> window.alert = (message, title='') ->
dialog = remote.require 'dialog' dialog = remote.require 'dialog'
buttons = ['OK'] buttons = ['OK']
message = message.toString()
dialog.showMessageBox remote.getCurrentWindow(), {message, title, buttons} dialog.showMessageBox remote.getCurrentWindow(), {message, title, buttons}
# And the confirm(). # And the confirm().