Skip to content

Commit

Permalink
chore: Added _blank, noopener to social links
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Apr 27, 2023
1 parent 06b070f commit 81cc251
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export const InviteToOpenSaucedModal = (
const emailIcon = emailBody
? createHtmlElement("a", {
href: emailHref,
target: "_blank",
rel: "noopener noreferrer",
innerHTML: `<img src=${chrome.runtime.getURL(
emailSocialIcon
)} alt="Email">`,
Expand All @@ -42,6 +44,8 @@ export const InviteToOpenSaucedModal = (
const twitterIcon = tweetHref
? createHtmlElement("a", {
href: tweetHref,
target: "_blank",
rel: "noopener noreferrer",
innerHTML: `<img src=${chrome.runtime.getURL(
twitterSocialIcon
)} alt="Twitter">`,
Expand All @@ -50,6 +54,8 @@ export const InviteToOpenSaucedModal = (
const linkedInIcon = linkedinHref
? createHtmlElement("a", {
href: linkedinHref,
target: "_blank",
rel: "noopener noreferrer",
innerHTML: `<img src=${chrome.runtime.getURL(
linkedInSocailIcon
)} alt="LinkedIn">`,
Expand Down

0 comments on commit 81cc251

Please sign in to comment.