mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
do not encode raw url to clipboard, fix #61
This commit is contained in:
@@ -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.')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user