Skip to content

Commit

Permalink
Merge pull request #62 from ProjectMirador/download-attr
Browse files Browse the repository at this point in the history
Toss a 'download' attribute on download links
  • Loading branch information
corylown authored Jan 4, 2022
2 parents f0303e2 + 220e112 commit 3f1b350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CanvasDownloadLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default class CanvasDownloadLinks extends Component {
{this.displayCurrentZoomLink()
&& (
<ListItem disableGutters divider>
<Link href={this.zoomedImageUrl()} rel="noopener noreferrer" target="_blank" variant="body1">
<Link href={this.zoomedImageUrl()} download rel="noopener noreferrer" target="_blank" variant="body1">
{this.zoomedImageLabel()}
</Link>
</ListItem>
Expand Down
2 changes: 1 addition & 1 deletion src/RenderingDownloadLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class RenderingDownloadLink extends Component {
return (
<ListItem disableGutters divider key={rendering.id}>
<ListItemText primaryTypographyProps={{ variant: 'body1' }}>
<Link href={rendering.id} rel="noopener noreferrer" target="_blank" variant="body1">
<Link href={rendering.id} download rel="noopener noreferrer" target="_blank" variant="body1">
{rendering.getLabel().getValue()}
</Link>
{rendering.getFormat()
Expand Down

0 comments on commit 3f1b350

Please sign in to comment.