Skip to content

Commit 88c32b7

Browse files
authored
Drop spurious variable declaration in Using Screen Capture API (mdn#5543)
1 parent 8992463 commit 88c32b7

File tree

1 file changed

+0
-2
lines changed
  • files/en-us/web/api/screen_capture_api/using_screen_capture

1 file changed

+0
-2
lines changed

files/en-us/web/api/screen_capture_api/using_screen_capture/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ <h2 id="Capturing_screen_contents">Capturing screen contents</h2>
4848
<figcaption><strong><em>Starting screen capture: <code>Promise</code> style</em></strong>
4949

5050
<pre class="brush: js">function startCapture(displayMediaOptions) {
51-
let captureStream = null;
52-
5351
return navigator.mediaDevices.getDisplayMedia(displayMediaOptions)
5452
.catch(err =&gt; { console.error("Error:" + err); return null; });
5553
}</pre>

0 commit comments

Comments
 (0)