Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Mar 2, 2025
1 parent aae0474 commit 5f84bc4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/workers/image.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const imageWorker = {
async init() {
if (!root) {
root = await navigator.storage.getDirectory()
// await root.remove({ recursive: true })
await root.remove({ recursive: true })
console.info('[ImageWorker] Initialized')
}

Expand All @@ -74,14 +74,6 @@ const imageWorker = {
async downloadImage(image, onProgress = undefined) {
const { archiveUrl, checksum: expectedChecksum, fileName, size } = image

// Skip if already downloaded
try {
await root.getFileHandle(fileName)
return
} catch {
// ignored
}

let writable
try {
const fileHandle = await root.getFileHandle(fileName, { create: true })
Expand Down

0 comments on commit 5f84bc4

Please sign in to comment.