linting fix

Aniket-Engg-patch-1
aniket-engg 10 months ago committed by Aniket
parent d12b1e9218
commit 483477a7d9
  1. 2
      libs/remix-ui/workspace/src/lib/actions/index.ts
  2. 1
      libs/remix-ui/workspace/src/lib/actions/workspace.ts

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

@ -260,7 +260,6 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe
await workspaceProvider.set(path, content) await workspaceProvider.set(path, content)
} }
if (params.shareCode) { if (params.shareCode) {
console.log('inside params.shareCode------>', params.shareCode)
const host = '127.0.0.1' const host = '127.0.0.1'
const port = 5001 const port = 5001
const protocol = 'http' const protocol = 'http'

Loading…
Cancel
Save