Skip to content

Commit

Permalink
Add noreferrer and noopener to sugeste HTML (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Oct 3, 2023
1 parent 9f9d2b8 commit 5110c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entrypoints/my-create-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ ${badgeHTML}</textarea
}

private _createHTML() {
return `<a href="${this._url}" target="_blank"><img src="${
return `<a href="${this._url}" target="_blank" rel="noreferrer noopener"><img src="${
window.location.origin
}${this._createBadge()}" alt="${this._altText}" /></a>`;
}
Expand Down

0 comments on commit 5110c29

Please sign in to comment.