web/download: open external links with noopener,noreferrer
Some checks failed
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled

This commit is contained in:
jj
2025-12-20 12:41:11 +00:00
parent cf96bce6cc
commit 8d9bccc4fe

View File

@@ -56,7 +56,7 @@ export const openURL = (url: string) => {
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 (!open) {