Merge pull request #7893 from JeeZeh/note_links_new_tab

Open external links in OSM notes in a new tab
This commit is contained in:
Quincy Morgan
2020-09-02 16:15:08 -04:00
committed by GitHub
+4 -1
View File
@@ -68,7 +68,10 @@ export function uiNoteComments() {
mainEnter
.append('div')
.attr('class', 'comment-text')
.html(function(d) { return d.html; });
.html(function(d) { return d.html; })
.selectAll('a')
.attr('rel', 'noopener nofollow')
.attr('target', '_blank');
comments
.call(replaceAvatars);