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;