mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
Add rel=noopener to external QA links
This commit is contained in:
@@ -24,7 +24,8 @@ export function uiViewOnKeepRight() {
|
||||
.append('a')
|
||||
.attr('class', 'view-on-keepRight')
|
||||
.attr('target', '_blank')
|
||||
.attr('href', function(d) { return d; })
|
||||
.attr('rel', 'noopener') // security measure
|
||||
.attr('href', d => d)
|
||||
.call(svgIcon('#iD-icon-out-link', 'inline'));
|
||||
|
||||
linkEnter
|
||||
|
||||
@@ -24,6 +24,7 @@ export function uiViewOnOsmose() {
|
||||
.append('a')
|
||||
.attr('class', 'view-on-osmose')
|
||||
.attr('target', '_blank')
|
||||
.attr('rel', 'noopener') // security measure
|
||||
.attr('href', d => d)
|
||||
.call(svgIcon('#iD-icon-out-link', 'inline'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user