mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
feat(backgrounds): accept webm custom call backgrounds (#2377)
This commit is contained in:
1 parent
f57dc77c6d
commit
cadab239a2
4 files changed
+33
-20
No files matched your search
@@ -179,8 +179,8 @@ interface BuiltInBackground {
|
||||
type BackgroundItemType = BuiltInBackground | BackgroundImage;
|
||||
|
||||
const MAX_FILE_SIZE = 10 * 1024 * 1024;
|
||||
const ALLOWED_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/webp', 'video/mp4'];
|
||||
const ALLOWED_FILE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'mp4'];
|
||||
const ALLOWED_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/webp', 'video/mp4', 'video/webm'];
|
||||
const ALLOWED_FILE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'mp4', 'webm'];
|
||||
|
||||
function isAllowedBackgroundFile(file: File): boolean {
|
||||
if (ALLOWED_MIME_TYPES.includes(file.type)) {
|
||||
|
||||
Reference in new issue
Block a user