From 765bf4661cfc154a45c75971e38cfe078882d04c Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Thu, 14 Dec 2023 14:17:11 -0600 Subject: [PATCH] Do give-ask for non-PDF resources --- src/app/pages/details/common/resource-box/left-content.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pages/details/common/resource-box/left-content.tsx b/src/app/pages/details/common/resource-box/left-content.tsx index 5ea07592a..d1743774e 100644 --- a/src/app/pages/details/common/resource-box/left-content.tsx +++ b/src/app/pages/details/common/resource-box/left-content.tsx @@ -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(); }