(name: string, blob: Blob)
| 368 | } |
| 369 | |
| 370 | export function blobToFileObj(name: string, blob: Blob) { |
| 371 | const options = name.match(/.svg$/) ? { type: 'image/svg+xml' } : {}; |
| 372 | return new File([blob], name, options); |
| 373 | } |
| 374 | |
| 375 | export async function getMediaAsBlob(path: string, id: string | null, readFile: ReadFile) { |
| 376 | let blob: Blob; |
no outgoing calls
no test coverage detected