mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-07 10:18:20 +00:00
web/download: open external links with noopener,noreferrer
This commit is contained in:
parent
cf96bce6cc
commit
8d9bccc4fe
@ -56,7 +56,7 @@ export const openURL = (url: string) => {
|
|||||||
return alert('error: invalid url!');
|
return alert('error: invalid url!');
|
||||||
}
|
}
|
||||||
|
|
||||||
const open = window.open(url, "_blank");
|
const open = window.open(url, "_blank", "noopener,noreferrer");
|
||||||
|
|
||||||
/* if new tab got blocked by user agent, show a saving dialog */
|
/* if new tab got blocked by user agent, show a saving dialog */
|
||||||
if (!open) {
|
if (!open) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user