mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Harden rendered markdown links
This commit is contained in:
@@ -129,6 +129,7 @@
|
||||
const url = new URL(e.href);
|
||||
if (url.origin !== window.origin) {
|
||||
e.target = "_blank";
|
||||
e.rel = "noopener noreferrer";
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn("Not able to parse url", e);
|
||||
|
||||
Reference in New Issue
Block a user