diff --git a/libs/remix-ui/workspace/src/lib/actions/index.ts b/libs/remix-ui/workspace/src/lib/actions/index.ts index 5e505f651d..92da6e7bf7 100644 --- a/libs/remix-ui/workspace/src/lib/actions/index.ts +++ b/libs/remix-ui/workspace/src/lib/actions/index.ts @@ -399,7 +399,7 @@ export const copyShareURL = async (path: string) => { let result = await ipfs.add(base64Content) const hash = result.cid.string const shareUrl = `${window.location.origin}/#shareCode=${hash}` - console.log('share url---->', shareUrl) + navigator.clipboard.writeText(shareUrl) } catch (error) { dispatch(displayPopUp('Oops! An error ocurred while performing copyShareURL operation.' + error)) } diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 2f82b5371c..2022f6d2af 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -536,9 +536,7 @@ export function Workspace() { // eslint-disable-next-line @typescript-eslint/no-unused-vars const handleCopyShareURLClick = (path: string, _type: string) => { - console.log('path---->', path) global.dispatchCopyShareURL(path) - // navigator.clipboard.writeText(fileName) } // eslint-disable-next-line @typescript-eslint/no-unused-vars