Skip to content

Commit

Permalink
fix invalid folder use jszip
Browse files Browse the repository at this point in the history
  • Loading branch information
bunsenstraat committed Mar 25, 2021
1 parent 971eff0 commit 4395539
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 4395539

Please sign in to comment.