standardize electron-capturer doc snippets

This commit is contained in:
Zeke Sikelianos 2016-07-26 09:49:02 -07:00
parent c38f505001
commit c3f26df577

View file

@ -32,11 +32,11 @@ desktopCapturer.getSources({types: ['window', 'screen']}, (error, sources) => {
} }
}) })
function handleStream(stream) { function handleStream (stream) {
document.querySelector('video').src = URL.createObjectURL(stream) document.querySelector('video').src = URL.createObjectURL(stream)
} }
function handleError(e) { function handleError (e) {
console.log(e) console.log(e)
} }
``` ```