Skip to content

Commit

Permalink
Merge pull request #1039 from ethereum/jszipfix
Browse files Browse the repository at this point in the history
fix invalid folder use jszip
  • Loading branch information
yann300 committed Mar 25, 2021
2 parents 971eff0 + 4395539 commit 425f610
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/remix-ide/src/app/ui/landing-page/landing-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ export class LandingPage extends ViewPlugin {
const fileProviders = globalRegistry.get('fileproviders').api
const zip = new JSZip()
await fileProviders.browser.copyFolderToJson('/', ({ path, content }) => {
zip.file(path, content)
}, ({ path, content }) => {
zip.folder(path, content)
zip.file(`remixbackup${path}`, content)
})
zip.generateAsync({ type: 'blob' }).then(function (blob) {
saveAs(blob, 'remixdbackup.zip')
Expand Down

0 comments on commit 425f610

Please sign in to comment.