mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
Merge pull request 'html.c: media: disable preloading' (#87) from Yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/87
This commit is contained in:
commit
91b656f111
1 changed files with 2 additions and 0 deletions
2
html.c
2
html.c
|
@ -1657,6 +1657,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
|
||||||
if (xs_startswith(t, "video/")) {
|
if (xs_startswith(t, "video/")) {
|
||||||
xs_html_add(content_attachments,
|
xs_html_add(content_attachments,
|
||||||
xs_html_tag("video",
|
xs_html_tag("video",
|
||||||
|
xs_html_attr("preload", "none"),
|
||||||
xs_html_attr("style", "width: 100%"),
|
xs_html_attr("style", "width: 100%"),
|
||||||
xs_html_attr("class", "snac-embedded-video"),
|
xs_html_attr("class", "snac-embedded-video"),
|
||||||
xs_html_attr("controls", NULL),
|
xs_html_attr("controls", NULL),
|
||||||
|
@ -1671,6 +1672,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
|
||||||
if (xs_startswith(t, "audio/")) {
|
if (xs_startswith(t, "audio/")) {
|
||||||
xs_html_add(content_attachments,
|
xs_html_add(content_attachments,
|
||||||
xs_html_tag("audio",
|
xs_html_tag("audio",
|
||||||
|
xs_html_attr("preload", "none"),
|
||||||
xs_html_attr("style", "width: 100%"),
|
xs_html_attr("style", "width: 100%"),
|
||||||
xs_html_attr("class", "snac-embedded-audio"),
|
xs_html_attr("class", "snac-embedded-audio"),
|
||||||
xs_html_attr("controls", NULL),
|
xs_html_attr("controls", NULL),
|
||||||
|
|
Loading…
Reference in a new issue