Skip to content

Commit

Permalink
fix: cross-origin links unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
matbrady authored Sep 11, 2019
1 parent 94da426 commit 5840937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion juxtapose/js/juxtapose.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@
this.leftImage.appendChild(this.imgBefore.image);

this.labCredit = document.createElement("a");
this.labCredit.setAttribute('href', 'http://juxtapose.knightlab.com');
this.labCredit.setAttribute('href', 'https://juxtapose.knightlab.com');
this.labCredit.setAttribute('rel', 'noopener');
this.labCredit.setAttribute('target', '_blank');
this.labCredit.className = 'jx-knightlab';
this.labLogo = document.createElement("div");
Expand Down

0 comments on commit 5840937

Please sign in to comment.