diff --git a/packages/client/src/scripts/select-file-enc.ts b/packages/client/src/scripts/select-file-enc.ts index 529e9d0a9..f7dc8bccd 100644 --- a/packages/client/src/scripts/select-file-enc.ts +++ b/packages/client/src/scripts/select-file-enc.ts @@ -4,7 +4,7 @@ import { stream } from '@/stream'; import { i18n } from '@/i18n'; import { defaultStore } from '@/store'; import { DriveFile } from 'misskey-js/built/entities'; -import VideoConverter from 'convert-video'; +import { VideoConverter } from 'convert-video'; function select(src: any, label: string | null, multiple: boolean): Promise { return new Promise((res, rej) => { @@ -100,10 +100,10 @@ function select(src: any, label: string | null, multiple: boolean): Promise { +export function selectFileEnc(src: any, label: string | null = null): Promise { return select(src, label, false) as Promise; } -export function selectFiles(src: any, label: string | null = null): Promise { +export function selectFilesEnc(src: any, label: string | null = null): Promise { return select(src, label, true) as Promise; }