Skip to content

Commit

Permalink
Adding noopener noreferrer to social links
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Treder committed Jun 19, 2018
1 parent 356cf39 commit 8810976
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"express": "^4.16.2",
"file-loader": "^0.11.2",
"html-webpack-plugin": "^2.30.1",
"icon-font-generator": "^2.1.7",
"image-webpack-loader": "^3.4.2",
"immutability-helper": "^2.3.1",
"lodash": "^4.17.4",
Expand Down
8 changes: 4 additions & 4 deletions src/components/social/social.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const Social = (props) => {
const githubLink = 'https://github.com/marcintreder/adele';
const facebookLink = `https://www.facebook.com/sharer/sharer.php?u=${props.url}`;
const twitterLink = `https://twitter.com/home?status=${message} ${props.url}`;
const linkedinLink = `https://www.linkedin.com/shareArticle?mini=true&url=${props.url}&title=${
title
}&summary=${message}&source=`;
const linkedinLink = `https://www.linkedin.com/shareArticle?mini=true&url=${
props.url
}&title=${title}&summary=${message}&source=`;

/* Functions openning social links as popups */
const openPopUp = (link, h, w) => {
Expand Down Expand Up @@ -72,7 +72,7 @@ const Social = (props) => {
<StyledSocialList>
<StyledListElement title="github">
<StyledSocialItem tabIndex={props.tab}>
<a href={githubLink} target="_blank">
<a href={githubLink} target="_blank" rel="noopener noreferrer">
<Icon i={githubSVG} size="m" color="#006cff" active />
</a>
</StyledSocialItem>
Expand Down

0 comments on commit 8810976

Please sign in to comment.