From e9258d7c2390eeb7748f3b37f39b46486f4b65ad Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 8 May 2022 23:17:36 +0200 Subject: [PATCH] fix: #614 breaks in desktop client :trollface: (#616) --- .../common/messaging/attachments/AttachmentActions.tsx | 8 ++++---- src/lib/ContextMenus.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/common/messaging/attachments/AttachmentActions.tsx b/src/components/common/messaging/attachments/AttachmentActions.tsx index 4be74ff8..4fa28985 100644 --- a/src/components/common/messaging/attachments/AttachmentActions.tsx +++ b/src/components/common/messaging/attachments/AttachmentActions.tsx @@ -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"> @@ -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"> @@ -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"> @@ -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"> diff --git a/src/lib/ContextMenus.tsx b/src/lib/ContextMenus.tsx index af7291ec..2e38dfa9 100644 --- a/src/lib/ContextMenus.tsx +++ b/src/lib/ContextMenus.tsx @@ -287,7 +287,7 @@ export default function ContextMenus() { "attachments", "attachments/download", ), - isFirefox ? "_blank" : "_self", + isFirefox || window.native ? "_blank" : "_self", ); } break;