Allow mkv video playback if supported and custom toast opacity increased

This commit is contained in:
Ryan
2025-04-02 14:41:58 -04:00
committed by GitHub
parent 7c3ce0803a
commit 3d57efba6c
3 changed files with 4 additions and 4 deletions

View File

@@ -263,7 +263,7 @@ function previewFile(fileUrl, fileName) {
embed.style.height = "80vh";
embed.style.border = "none";
container.appendChild(embed);
} else if (/\.(mp4|webm|mov|ogg)$/i.test(fileName)) {
} else if (/\.(mp4|mkv|webm|mov|ogv)$/i.test(fileName)) {
const video = document.createElement("video");
video.src = fileUrl;
video.controls = true;