remove encoding

pull/5370/head
aniket-engg 1 year ago committed by Aniket
parent 01845a1864
commit ce1d8c9cee
  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