Merge pull request #1039 from ethereum/jszipfix

fix invalid folder use jszip
pull/1040/head
yann300 4 years ago committed by GitHub
commit 425f6101bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/remix-ide/src/app/ui/landing-page/landing-page.js

@ -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')

Loading…
Cancel
Save