diff options
author | Andy Coupe <andrewmcoupe@gmail.com> | 2020-06-30 14:40:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 09:40:57 -0400 |
commit | 587731583f4660dee49c217f69dfc73fe006d6cf (patch) | |
tree | a71bec18254f57160d642144db32685ae35703a8 /ui/src/components/iframely-card.tsx | |
parent | c0b11d4fa3d383585aa26df22d5c13e58127b1b8 (diff) |
improve lighthouse best practices audit (#863)
* improve safety of cross origin links
* add additional safety for cross origin links
* remove duplicates
Diffstat (limited to 'ui/src/components/iframely-card.tsx')
-rw-r--r-- | ui/src/components/iframely-card.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/src/components/iframely-card.tsx b/ui/src/components/iframely-card.tsx index 3a89023f..0d3f43f6 100644 --- a/ui/src/components/iframely-card.tsx +++ b/ui/src/components/iframely-card.tsx @@ -44,7 +44,12 @@ export class IFramelyCard extends Component< </span> ) : ( <span> - <a class="text-body" target="_blank" href={post.url}> + <a + class="text-body" + target="_blank" + href={post.url} + rel="noopener" + > {post.embed_title} </a> </span> @@ -55,6 +60,7 @@ export class IFramelyCard extends Component< class="text-muted font-italic" target="_blank" href={post.url} + rel="noopener" > {new URL(post.url).hostname} <svg class="ml-1 icon"> |