mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 12:22:44 +00:00
BrewItem: Mark links as noreferrer
This commit is contained in:
@@ -38,7 +38,7 @@ const BrewItem = createClass({
|
|||||||
renderEditLink : function(){
|
renderEditLink : function(){
|
||||||
if(!this.props.brew.editId) return;
|
if(!this.props.brew.editId) return;
|
||||||
|
|
||||||
return <a href={`/edit/${this.props.brew.editId}`} target='_blank'>
|
return <a href={`/edit/${this.props.brew.editId}`} target='_blank' rel='noopener noreferrer'>
|
||||||
<i className='fa fa-pencil' />
|
<i className='fa fa-pencil' />
|
||||||
</a>;
|
</a>;
|
||||||
},
|
},
|
||||||
@@ -63,7 +63,7 @@ const BrewItem = createClass({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='links'>
|
<div className='links'>
|
||||||
<a href={`/share/${brew.shareId}`} target='_blank'>
|
<a href={`/share/${brew.shareId}`} target='_blank' rel='noopener noreferrer'>
|
||||||
<i className='fa fa-share-alt' />
|
<i className='fa fa-share-alt' />
|
||||||
</a>
|
</a>
|
||||||
{this.renderEditLink()}
|
{this.renderEditLink()}
|
||||||
|
|||||||
Reference in New Issue
Block a user