mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 07:32:12 +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()
|
||||
|
||||
```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
|
||||
|
||||
Reference in New Issue
Block a user