diff options
Diffstat (limited to 'src/lib/media')
-rw-r--r-- | src/lib/media/manip.ts | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/media/manip.ts b/src/lib/media/manip.ts index 3e647004b..3f01e98c5 100644 --- a/src/lib/media/manip.ts +++ b/src/lib/media/manip.ts @@ -218,13 +218,7 @@ export async function safeDeleteAsync(path: string) { // Normalize is necessary for Android, otherwise it doesn't delete. const normalizedPath = normalizePath(path) try { - await Promise.allSettled([ - deleteAsync(normalizedPath, {idempotent: true}), - // HACK: Try this one too. Might exist due to api-polyfill hack. - deleteAsync(normalizedPath.replace(/\.jpe?g$/, '.bin'), { - idempotent: true, - }), - ]) + await deleteAsync(normalizedPath, {idempotent: true}) } catch (e) { console.error('Failed to delete file', e) } |