Skip to content

Commit b552a18

Browse files
committed
More consistent attribute setting
It turns out browsers convert `controls = true` into just `controls` in the DOM, which is exactly what we want.
1 parent cf31315 commit b552a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ <h2><code>window.obs</code></h2>
300300
video.poster = './assets/poster.png';
301301
video.autoplay = true;
302302
video.muted = true;
303-
video.setAttribute('controls', '');
303+
video.controls = true;
304304
videoWrapper.appendChild(video);
305305
}
306306

0 commit comments

Comments
 (0)