We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27534e7 commit abd356cCopy full SHA for abd356c
packages/doom/src/theme/Link.tsx
@@ -13,7 +13,12 @@ export const Link = (props: LinkProps) => {
13
return (
14
<OriginalLink
15
{...props}
16
- download={props.href?.endsWith('.pdf') && props.download !== false}
+ download={
17
+ // type-coverage:ignore-next-line -- out of control
18
+ props.download == null
19
+ ? props.href?.endsWith('.pdf')
20
+ : (props.download as unknown)
21
+ }
22
/>
23
)
24
}
0 commit comments