remove encoding

Aniket-Engg-patch-1
aniket-engg 10 months ago committed by Aniket
parent 11e9c242a7
commit cd4f71a190
  1. 4
      libs/remix-ui/workspace/src/lib/actions/index.ts

@ -394,9 +394,7 @@ export const copyShareURL = async (path: string) => {
})
const fileContent = await fileManager.readFile(path)
const base64Content = btoa(fileContent)
let result = await ipfs.add(base64Content)
let result = await ipfs.add(fileContent)
const hash = result.cid.string
const shareUrl = `${window.location.origin}/#shareCode=${hash}`
navigator.clipboard.writeText(shareUrl)

Loading…
Cancel
Save