Methods
send(name, args) → {Promise}
Call registered function in chrome context.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Function to call in the chrome, e.g. for Marionette:foo, use foo. |
args |
* | Argument list to pass the function. Must be JSON serialisable. |
Returns:
A promise that resolves to the value sent back.
- Type
- Promise