From 11e9c242a7df8e1004e6d3c313b74aa6b428569a Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 25 Jan 2024 14:40:17 +0530 Subject: [PATCH] copy URL --- libs/remix-ui/workspace/src/lib/actions/index.ts | 2 +- libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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