Skip to content

Commit

Permalink
fix already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
xytoki authored Sep 28, 2023
1 parent 2b1f055 commit 5cec327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function createWriter(underlyingSource) {
const date = new Date(typeof fileLike.lastModified === 'undefined' ? Date.now() : fileLike.lastModified)

if (fileLike.directory && !name.endsWith('/')) name += '/'
if (files[name]) throw new Error('File already exists.')
if (files[name]) console.warn('File already exists.', fileLike)
filesSize += fileLike.size
zip64 = (filesSize >= 0xffffffff)

Expand Down Expand Up @@ -291,4 +291,4 @@ function createWriter(underlyingSource) {
})
}

window.ZIP = createWriter
window.ZIP = createWriter

0 comments on commit 5cec327

Please sign in to comment.