(name: string, blob: Blob)
| 399 | } |
| 400 | |
| 401 | export function blobToFileObj(name: string, blob: Blob) { |
| 402 | const options = name.match(/.svg$/) ? { type: 'image/svg+xml' } : {}; |
| 403 | return new File([blob], name, options); |
| 404 | } |
| 405 | |
| 406 | export async function getMediaAsBlob(path: string, id: string | null, readFile: ReadFile) { |
| 407 | let blob: Blob; |
no outgoing calls
no test coverage detected