You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
add rel='noopener' wherever we do target='_blank' because https://mathiasbynens.github.io/rel-noopener/
This commit is contained in:
@@ -137,6 +137,10 @@ matrixLinkify.options = {
|
||||
}
|
||||
},
|
||||
|
||||
linkAttributes: {
|
||||
rel: 'noopener',
|
||||
},
|
||||
|
||||
target: function(href, type) {
|
||||
if (type === 'url') {
|
||||
if (href.match(matrixLinkify.VECTOR_URL_PATTERN)) {
|
||||
|
||||
Reference in New Issue
Block a user