mirror of
https://github.com/pischule/memevizor.git
synced 2025-12-19 06:56:42 +00:00
Add support for webm videos
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
const blob = await response.blob();
|
||||
const blobUrl = URL.createObjectURL(blob);
|
||||
const contentType = response.headers.get("content-type");
|
||||
if (contentType === "video/mp4") {
|
||||
if (contentType.startsWith("video/")) {
|
||||
const video = document.createElement("video");
|
||||
video.src = blobUrl;
|
||||
video.controls = true;
|
||||
|
||||
Reference in New Issue
Block a user