mirror of
https://github.com/electron/electron.git
synced 2026-01-24 14:57:58 -05:00
convert message to string for window.alert method
This commit is contained in:
@@ -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().
|
||||
|
||||
Reference in New Issue
Block a user