Commit 37cf72ea authored by Slava Istomin's avatar Slava Istomin
Browse files

index.html: fixup top-level await usage.

parent 0528f21d
Pipeline #12514 passed with stages
in 13 seconds
......@@ -9,10 +9,12 @@
<video src=""></video>
<script>
let video = document.querySelector('video')
let mediaStream = await navigator.mediaDevices.getDisplayMedia()
video.srcObject = mediaStream
video.play()
;(async _ => {
let video = document.querySelector('video')
let mediaStream = await navigator.mediaDevices.getDisplayMedia()
video.srcObject = mediaStream
video.play()
})()
</script>
</body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment