Skip to content

Commit dbf47cc

Browse files
committed
feat: add download property to download link
1 parent 779c5c0 commit dbf47cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/pages/DisplayPaste.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export function DisplayPaste() {
159159
{pasteFile && (
160160
<Tooltip content={`Download as file`}>
161161
<Button aria-label="Download" isIconOnly className={buttonClasses}>
162-
<a href={URL.createObjectURL(pasteFile)}>
162+
<a href={URL.createObjectURL(pasteFile)} download={pasteFile.name}>
163163
<DownloadIcon className="size-6 inline" />
164164
</a>
165165
</Button>

0 commit comments

Comments
 (0)