Skip to content

Commit 425f610

Browse files
authored
Merge pull request #1039 from ethereum/jszipfix
fix invalid folder use jszip
2 parents 971eff0 + 4395539 commit 425f610

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/remix-ide/src/app/ui/landing-page/landing-page.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,7 @@ export class LandingPage extends ViewPlugin {
329329
const fileProviders = globalRegistry.get('fileproviders').api
330330
const zip = new JSZip()
331331
await fileProviders.browser.copyFolderToJson('/', ({ path, content }) => {
332-
zip.file(path, content)
333-
}, ({ path, content }) => {
334-
zip.folder(path, content)
332+
zip.file(`remixbackup${path}`, content)
335333
})
336334
zip.generateAsync({ type: 'blob' }).then(function (blob) {
337335
saveAs(blob, 'remixdbackup.zip')

0 commit comments

Comments
 (0)