Browse Source

standardize electron-capturer doc snippets

Zeke Sikelianos 8 years ago
parent
commit
c3f26df577
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/api/desktop-capturer.md

+ 2 - 2
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)
 }
 ```