convert message to string for window.alert method

This commit is contained in:
fraserxu 2015-05-29 15:55:11 +08:00
parent 4a310ad630
commit 57ab704300

View file

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