Merge pull request #1814 from fraserxu/master
convert message to string for window.alert method
This commit is contained in:
commit
f22d4bf0c0
1 changed files with 1 additions and 0 deletions
|
@ -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().
|
||||||
|
|
Loading…
Reference in a new issue