Skip to content

Commit ec286eb

Browse files
authored
fix(useFilesGallery): add mov extension to the supported gallery video extensions (#921)
1 parent 721b275 commit ec286eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/view/hooks/useFilesGallery/constants.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
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+
const commonVideoExtensions = ['mp4', 'webm', 'ogg'];
6+
const platformVideoExtensions = isMac() ? ['mov'] : [];
7+
8+
export const supportedVideoExtensions = [...commonVideoExtensions, ...platformVideoExtensions];
49

510
export const supportedExtensions = [...supportedImageExtensions, ...supportedVideoExtensions];
611

0 commit comments

Comments
 (0)