Commit 43955393 authored by bunsenstraat's avatar bunsenstraat

fix invalid folder use jszip

parent 971eff08
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment