do not encode raw url to clipboard, fix #61
This commit is contained in:
parent
fa4c34d76f
commit
778666b7b4
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
|
|||
render: <FontAwesomeIcon icon="copy" />,
|
||||
onClick: i => {
|
||||
navigator.clipboard.writeText(
|
||||
i.alt ? `${getBaseUrl()}/api?path=${encodeURIComponent(path + '/' + i.alt)}&raw=true` : ''
|
||||
i.alt ? `${getBaseUrl()}/api?path=${path + '/' + i.alt}&raw=true` : ''
|
||||
)
|
||||
toast.success('Copied image permanent link to clipboard.')
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue