Skip to content

Commit

Permalink
fix security warnings (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north authored Oct 6, 2023
1 parent e651f3b commit aa413c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/website/src/components/EditOnGitHub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const EditOnGitHubLink: React.FunctionComponent<EditOnGitHubLinkProps> = ({
.replace('/course', '')
.substr(1)}index.md`;
return (
<a href={url} target="_blank">
<a href={url} rel="noopener noreferrer" target="_blank">
<div className="edit-on-github-link">
<img src={githubIcon} alt="GitHub" />
Edit on GitHub
Expand Down
4 changes: 2 additions & 2 deletions packages/website/src/templates/course-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const CoursePageTemplate: React.FunctionComponent<
<img className='fem-logo' src="/fem-logo.png" />
View the Frontend Masters video course for{' '}
{course.name}{' '}
<a href={femCourseUrl} target="_blank">
<a href={femCourseUrl} rel="noopener noreferrer" target="_blank">
here
</a>
</p>
Expand All @@ -91,7 +91,7 @@ const CoursePageTemplate: React.FunctionComponent<
<img className='fem-logo' src="/fem-logo.png" />
View the Frontend Masters workshop for{' '}
{course.name}{' '}
<a href={femWorkshopUrl} target="_blank">
<a href={femWorkshopUrl} rel="noopener noreferrer" target="_blank">
here
</a>
</p>
Expand Down

0 comments on commit aa413c2

Please sign in to comment.