From 0400476f0b0b6fbc22bc8f13ef40f3dd2ad408a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20K=C3=A5berg?= Date: Wed, 3 Apr 2024 13:48:22 +0200 Subject: [PATCH] add mkv as an allowed video type --- ui/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/script.js b/ui/script.js index 52f3dd5..0e2ca1b 100755 --- a/ui/script.js +++ b/ui/script.js @@ -579,7 +579,7 @@ picsHolder.addEventListener('touchend', e => { }, false) // Video player -const videosTypes = ['.mp4', '.webm', '.ogv', '.ogg', '.mp3', '.flac', '.wav'] +const videosTypes = ['.mkv', '.mp4', '.webm', '.ogv', '.ogg', '.mp3', '.flac', '.wav'] const isVideo = src => src && videosTypes.find(type => src.toLocaleLowerCase().includes(type)) const isVideoMode = () => video.style.display === 'flex' const videoFs = () => video.requestFullscreen()