mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 16:40:58 -05:00
parent
7345172271
commit
e9258d7c23
2 changed files with 5 additions and 5 deletions
|
@ -52,7 +52,7 @@ export default function AttachmentActions({ attachment }: Props) {
|
||||||
href={download_url}
|
href={download_url}
|
||||||
className={styles.downloadIcon}
|
className={styles.downloadIcon}
|
||||||
download
|
download
|
||||||
target={isFirefox ? "_blank" : "_self"}
|
target={isFirefox || window.native ? "_blank" : "_self"}
|
||||||
rel="noreferrer">
|
rel="noreferrer">
|
||||||
<IconButton>
|
<IconButton>
|
||||||
<Download size={24} />
|
<Download size={24} />
|
||||||
|
@ -70,7 +70,7 @@ export default function AttachmentActions({ attachment }: Props) {
|
||||||
href={download_url}
|
href={download_url}
|
||||||
className={styles.downloadIcon}
|
className={styles.downloadIcon}
|
||||||
download
|
download
|
||||||
target={isFirefox ? "_blank" : "_self"}
|
target={isFirefox || window.native ? "_blank" : "_self"}
|
||||||
rel="noreferrer">
|
rel="noreferrer">
|
||||||
<IconButton>
|
<IconButton>
|
||||||
<Download size={24} />
|
<Download size={24} />
|
||||||
|
@ -90,7 +90,7 @@ export default function AttachmentActions({ attachment }: Props) {
|
||||||
href={download_url}
|
href={download_url}
|
||||||
className={styles.downloadIcon}
|
className={styles.downloadIcon}
|
||||||
download
|
download
|
||||||
target={isFirefox ? "_blank" : "_self"}
|
target={isFirefox || window.native ? "_blank" : "_self"}
|
||||||
rel="noreferrer">
|
rel="noreferrer">
|
||||||
<IconButton>
|
<IconButton>
|
||||||
<Download size={24} />
|
<Download size={24} />
|
||||||
|
@ -119,7 +119,7 @@ export default function AttachmentActions({ attachment }: Props) {
|
||||||
href={download_url}
|
href={download_url}
|
||||||
className={styles.downloadIcon}
|
className={styles.downloadIcon}
|
||||||
download
|
download
|
||||||
target={isFirefox ? "_blank" : "_self"}
|
target={isFirefox || window.native ? "_blank" : "_self"}
|
||||||
rel="noreferrer">
|
rel="noreferrer">
|
||||||
<IconButton>
|
<IconButton>
|
||||||
<Download size={24} />
|
<Download size={24} />
|
||||||
|
|
|
@ -287,7 +287,7 @@ export default function ContextMenus() {
|
||||||
"attachments",
|
"attachments",
|
||||||
"attachments/download",
|
"attachments/download",
|
||||||
),
|
),
|
||||||
isFirefox ? "_blank" : "_self",
|
isFirefox || window.native ? "_blank" : "_self",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue