mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
remove proxied download button (for now)
This commit is contained in:
@@ -32,14 +32,14 @@ const VideoPreview: React.FC<{ file: any }> = ({ file }) => {
|
||||
btnText="Download"
|
||||
btnIcon="file-download"
|
||||
/>
|
||||
<DownloadButton
|
||||
{/* <DownloadButton
|
||||
onClickCallback={() =>
|
||||
window.open(`/api/proxy?url=${encodeURIComponent(file['@microsoft.graph.downloadUrl'])}`)
|
||||
}
|
||||
btnColor="teal"
|
||||
btnText="Proxy download"
|
||||
btnIcon="download"
|
||||
/>
|
||||
/> */}
|
||||
<DownloadButton
|
||||
onClickCallback={() => {
|
||||
clipboard.copy(`${getBaseUrl()}/api?path=${asPath}&raw=true`)
|
||||
|
||||
Reference in New Issue
Block a user