pull/5370/head
yann300 4 years ago
parent 9d3ddb94c6
commit d3d9d6c012
  1. 6
      apps/remix-ide/src/app/ui/landing-page/landing-page.js

@ -298,9 +298,12 @@ export class LandingPage extends ViewPlugin {
}
const downloadFiles = async () => {
try {
const fileProviders = globalRegistry.get('fileproviders').api
const json = await fileProviders.browser.copyFolderToJson('/')
const blob = new Blob([ JSON.stringify(json, null, '\t') ], { type: 'text/plain;charset=utf-8' })
const blob = new Blob([ JSON.stringify(json, null, '\t') ], { type: 'text/plain;charset=utf-8' })
const blob = new Blob([ JSON.stringify(json, null, '\t') ], { type: 'text/plain;charset=utf-8' })
const node = document.createElement('a')
node.download = 'remix.json'
node.rel = 'noopener'
@ -316,6 +319,9 @@ export class LandingPage extends ViewPlugin {
node.dispatchEvent(evt)
}
}, 0) // 40s
} catch (e) {
tooltip(e.message)
}
}
const uploadFile = (target) => {

Loading…
Cancel
Save