mirror of https://github.com/zulip/zulip.git
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:
parent
44026444dc
commit
efed087741
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue