mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 20:01:36 +00:00
Update download url
This commit is contained in:
@@ -320,12 +320,12 @@ function Action({
|
||||
isDownloadable?: boolean;
|
||||
}) {
|
||||
const copyLink = useCopyText();
|
||||
let url: string = "";
|
||||
let url: string = apiConfig.basePath;
|
||||
if (path) {
|
||||
url = `${apiConfig.basePath}${path}`;
|
||||
url += path;
|
||||
}
|
||||
if (path && isDownloadable) {
|
||||
url = `${apiConfig.basePath}/download${path}`;
|
||||
url += `/download${path}`;
|
||||
}
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user