mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
webxdc documentation: make function declaration correct JavaScript (#3237)
* webxdc docs: make function declaration correct js * add 'let'
This commit is contained in:
@@ -54,7 +54,7 @@ and you won't get the update by `setUpdateListener()`.
|
|||||||
### setUpdateListener()
|
### setUpdateListener()
|
||||||
|
|
||||||
```js
|
```js
|
||||||
window.webxdc.setUpdateListener((update) => {}, serial) -> Promise<void>;
|
let promise = window.webxdc.setUpdateListener((update) => {}, serial);
|
||||||
```
|
```
|
||||||
|
|
||||||
With `setUpdateListener()` you define a callback that receives the updates
|
With `setUpdateListener()` you define a callback that receives the updates
|
||||||
|
|||||||
Reference in New Issue
Block a user