Skip to content

Commit

Permalink
Correcting makeExternalLinks() to allow 'rel' attribute to be overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
rootwork authored and onweru committed Aug 24, 2021
1 parent 51863b0 commit b91cd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function fileClosure(){
blank = '_blank';
noopener = 'noopener';
attr1 = elemAttribute(link, target);
attr2 = elemAttribute(link, noopener);
attr2 = elemAttribute(link, rel);

attr1 ? false : elemAttribute(link, target, blank);
attr2 ? false : elemAttribute(link, rel, noopener);
Expand Down

0 comments on commit b91cd21

Please sign in to comment.