diff --git a/apps/remix-ide/src/app/files/workspaceFileProvider.js b/apps/remix-ide/src/app/files/workspaceFileProvider.js index 0764f0726a..fe4e6825cb 100644 --- a/apps/remix-ide/src/app/files/workspaceFileProvider.js +++ b/apps/remix-ide/src/app/files/workspaceFileProvider.js @@ -54,7 +54,7 @@ class WorkspaceFileProvider extends FileProvider { const regex = new RegExp(`.workspaces/${this.workspace}/`, 'g') let json = await super._copyFolderToJsonInternal(directory, ({ path, content }) => { visitFile({ path: path.replace(regex, ''), content }) - },({ path }) => { + }, ({ path }) => { visitFolder({ path: path.replace(regex, '') }) }) json = JSON.stringify(json).replace(regex, '') diff --git a/apps/remix-ide/src/app/ui/landing-page/landing-page.js b/apps/remix-ide/src/app/ui/landing-page/landing-page.js index be73a5c762..a3f134a94f 100644 --- a/apps/remix-ide/src/app/ui/landing-page/landing-page.js +++ b/apps/remix-ide/src/app/ui/landing-page/landing-page.js @@ -1,7 +1,7 @@ import * as packageJson from '../../../../../../package.json' import { ViewPlugin } from '@remixproject/engine-web' import { migrateToWorkspace } from '../../../migrateFileSystem' -import JSZip from "jszip" +import JSZip from 'jszip' const yo = require('yo-yo') const csjs = require('csjs-inject') @@ -327,7 +327,7 @@ export class LandingPage extends ViewPlugin { const zip = new JSZip() await fileProviders.browser.copyFolderToJson('/', ({ path, content }) => { zip.file(path, content) - },({ path }) => { + }, ({ path }) => { zip.folder(path) }) zip.generateAsync({ type: 'blob' }).then(function (blob) { @@ -417,7 +417,7 @@ export class LandingPage extends ViewPlugin { yo`Do you want to download your files to local device first?`, { label: 'Download and Migrate', - fn: async () => { + fn: async () => { await downloadFiles() migrate() }