lightbox: Disable controls on video previews in lightbox.

Setting any value for a boolean attribute (like "controls") enables
it.

(cherry picked from commit 2d0468bde5)
This commit is contained in:
Alex Vandiver 2024-08-01 15:21:55 +00:00 committed by Tim Abbott
parent 44026444dc
commit efed087741
1 changed files with 0 additions and 1 deletions

View File

@ -251,7 +251,6 @@ export function render_lightbox_media_list(displayed_source: string): void {
const $video = $("<video>"); const $video = $("<video>");
$video.attr("src", payload.source); $video.attr("src", payload.source);
$video.attr("controls", "false");
$node.append($video); $node.append($video);
} else { } else {