@ -395,7 +395,7 @@ export const copyShareURL = async (path: string) => {
})
const fileContent = await fileManager.readFile(path)
let result = await ipfs.add(fileContent)
const result = await ipfs.add(fileContent)
const hash = result.cid.string
const shareUrl = `${window.location.origin}/#shareCode=${hash}`
navigator.clipboard.writeText(shareUrl)
@ -260,7 +260,6 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe
await workspaceProvider.set(path, content)
}
if (params.shareCode) {
console.log('inside params.shareCode------>', params.shareCode)
const host = '127.0.0.1'
const port = 5001
const protocol = 'http'