Skip to content

Commit

Permalink
referer: do not send referrer when opening a link
Browse files Browse the repository at this point in the history
This change augments what was already done in 54e0f2d (PR with discussion
at ether#3636).

For documentation about the meaning of "noopener, noreferrer", see:
https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Window_functionality_features
  • Loading branch information
Chocobozzz committed Apr 1, 2020
1 parent c1c58fa commit 5e408e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/static/js/ace2_inner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3374,8 +3374,7 @@ function Ace2Inner(){
{
try
{
var newWindow = window.open(n.href, '_blank');
newWindow.focus();
window.open(n.href, '_blank', 'noopener,noreferrer');
}
catch (e)
{
Expand Down

0 comments on commit 5e408e3

Please sign in to comment.