enforce noopener & noreferrer

This commit is contained in:
BretRen committed 2026-07-20 00:13:21 -07:00
1 parent e2e1c2b4d7
commit cb6daac2cd
1 file changed
+4 -3
+4 -3
View File
@@ -54,8 +54,8 @@
}}>
{@html DOMPurify.sanitize(error, {
ALLOWED_TAGS: ['a'],
ALLOWED_ATTR: ['href', 'target', 'rel']
})}
ALLOWED_ATTR: ['href']
}).replace(/<a /g, '<a rel="noopener noreferrer" ')}
</Alert.Inline>
</div>
{/if}
@@ -80,7 +80,8 @@
opacity: 0;
animation: none;
}
/* Svelte cannot see the DOM rendered by `{@html}`, resulting in a false positive.*/
/* svelte-ignore css-unused-selector */
.alert-error :global(a) {
color: inherit;
text-decoration: underline;