Skip to content

Commit dcf072c

Browse files
committed
fix(useFilesGallery): add mov extension to the supported gallery video extensions list
1 parent 721b275 commit dcf072c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/view/hooks/useFilesGallery/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import {isMac} from 'src/utils';
2+
13
export const supportedImageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg', 'avif', 'bmp'];
24

3-
export const supportedVideoExtensions = ['mp4', 'webm', 'ogg'];
5+
export const supportedVideoExtensions = isMac() ? ['mp4', 'mov', 'webm', 'ogg'] : ['mp4', 'webm', 'ogg'];
46

57
export const supportedExtensions = [...supportedImageExtensions, ...supportedVideoExtensions];
68

0 commit comments

Comments
 (0)