fix: #614 breaks in desktop client :trollface: (#616)

This commit is contained in:
Jan 2022-05-08 23:17:36 +02:00 committed by GitHub
parent 7345172271
commit e9258d7c23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -52,7 +52,7 @@ export default function AttachmentActions({ attachment }: Props) {
href={download_url}
className={styles.downloadIcon}
download
target={isFirefox ? "_blank" : "_self"}
target={isFirefox || window.native ? "_blank" : "_self"}
rel="noreferrer">
<IconButton>
<Download size={24} />
@ -70,7 +70,7 @@ export default function AttachmentActions({ attachment }: Props) {
href={download_url}
className={styles.downloadIcon}
download
target={isFirefox ? "_blank" : "_self"}
target={isFirefox || window.native ? "_blank" : "_self"}
rel="noreferrer">
<IconButton>
<Download size={24} />
@ -90,7 +90,7 @@ export default function AttachmentActions({ attachment }: Props) {
href={download_url}
className={styles.downloadIcon}
download
target={isFirefox ? "_blank" : "_self"}
target={isFirefox || window.native ? "_blank" : "_self"}
rel="noreferrer">
<IconButton>
<Download size={24} />
@ -119,7 +119,7 @@ export default function AttachmentActions({ attachment }: Props) {
href={download_url}
className={styles.downloadIcon}
download
target={isFirefox ? "_blank" : "_self"}
target={isFirefox || window.native ? "_blank" : "_self"}
rel="noreferrer">
<IconButton>
<Download size={24} />

View file

@ -287,7 +287,7 @@ export default function ContextMenus() {
"attachments",
"attachments/download",
),
isFirefox ? "_blank" : "_self",
isFirefox || window.native ? "_blank" : "_self",
);
}
break;