mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
enforce noopener & noreferrer
This commit is contained in:
1 file changed
+4
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user