diff --git a/docs/api/desktop-capturer.md b/docs/api/desktop-capturer.md index a636c7be03d..af35b11fdee 100644 --- a/docs/api/desktop-capturer.md +++ b/docs/api/desktop-capturer.md @@ -32,11 +32,11 @@ desktopCapturer.getSources({types: ['window', 'screen']}, (error, sources) => { } }) -function handleStream(stream) { +function handleStream (stream) { document.querySelector('video').src = URL.createObjectURL(stream) } -function handleError(e) { +function handleError (e) { console.log(e) } ```