Skip to content

Commit

Permalink
Do give-ask for non-PDF resources
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyEJohnson committed Dec 14, 2023
1 parent d62985d commit 765bf46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/details/common/resource-box/left-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function LeftButton({model}: {model: LeftContentModelType & LinkIsSet}) {
);

function openDialog(event: TrackedMouseEvent) {
if (isDownload && enabled && model.link.url.endsWith('pdf')) {
if (isDownload && enabled) {
event.preventDefault();
open();
}
Expand Down

0 comments on commit 765bf46

Please sign in to comment.