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(); }