mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-23 16:38:52 +00:00
web/download: open external links with noopener,noreferrer
Some checks failed
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
Some checks failed
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user