Allow unblocking files

This commit is contained in:
2022-04-19 13:02:31 +02:00
parent 047de526ec
commit 3ba1b6e801
3 changed files with 6 additions and 6 deletions

View File

@@ -63,11 +63,11 @@ let embed_hotlink = () => {
let t = file_type(file)
if (t === "video") {
embed_html = `<video controls playsinline autoplay style="max-width: 100%; max-height: 100%;">`+
embed_html = `<video controls playsinline style="max-width: 100%; max-height: 100%;">`+
`<source src="${domain_url()}${file.get_href}" type="${file.mime_type}" />`+
`</video>`
} else if (t === "audio") {
embed_html = `<audio controls autoplay style="width: 100%;">`+
embed_html = `<audio controls style="width: 100%;">`+
`<source src="${domain_url()}${file.get_href}" type="${file.mime_type}" />`+
`</audio>`
} else if (t === "image") {