Allow unblocking files

This commit is contained in:
Pixeldrain-Server committed 2022-04-19 13:02:31 +02:00
1 parent 047de526ec
commit 3ba1b6e801
3 files changed
+6 -6

No files matched your search

+2 -2
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") {