Chocolat API
sendMessage
Sheet
Storage
Recipe
Window
Alert
insertTextAtLocation
Range
Clipboard
UI
Tab
Popover
sendMessage
MainWindow
.
sendMessage
(
msg
,
arg
)
Send a message to the window that you can catch with the window.onMessage attribute.
msg
:
String
– the name of the message to send.
arg
:
Value
– an argument to pass to the callback function.