mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
standardize electron-capturer doc snippets
This commit is contained in:
@@ -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)
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user