Merge pull request #1263 from bencevans/patch-1
docs: Fix syntax error in JavaScript example
This commit is contained in:
commit
db765c7a0c
@ -256,7 +256,7 @@ chain. The function will be called with the error object as the only argument:
|
|||||||
.. code-block:: js
|
.. code-block:: js
|
||||||
|
|
||||||
mopidy.playback.getCurrentTrack()
|
mopidy.playback.getCurrentTrack()
|
||||||
.catch(console.error.bind(console));
|
.catch(console.error.bind(console))
|
||||||
.done(printCurrentTrack);
|
.done(printCurrentTrack);
|
||||||
|
|
||||||
You can also register the error handler at the end of the promise chain by
|
You can also register the error handler at the end of the promise chain by
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user