Skip to content

Commit

Permalink
add noopener and noreferrer to anchor tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sanographix committed Apr 23, 2017
1 parent c877c0a commit 997404b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/js/scripts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/scripts-core.js
Expand Up @@ -4,6 +4,7 @@
for (var i = 0; i < a.length; i++) {
if (a[i].host !== location.host) {
a[i].setAttribute('target', '_blank');
a[i].setAttribute('rel', 'noopener noreferrer');
}
}
}());

0 comments on commit 997404b

Please sign in to comment.