Skip to content

Commit

Permalink
Specify rel="noopener noreferrer" when opening external links
Browse files Browse the repository at this point in the history
  • Loading branch information
DaazKu committed Jul 17, 2017
1 parent cd82cf4 commit 72741d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/LinkTypes/js/linktypes.js
@@ -1,4 +1,4 @@
$(document).ready(function() {
$(function() {

// Get type of URL.
var urlType = function(url) {
Expand Down Expand Up @@ -46,12 +46,12 @@ $(document).ready(function() {
// $(this).attr('target', '_top');
// break;
case 'external':
$(this).attr('target', '_blank');
$(this).attr('rel', 'noopener noreferrer').attr('target', '_blank');
break;
// case 'internal':
// $(this).attr('target', '');
// break;
}
});

});
});

0 comments on commit 72741d3

Please sign in to comment.