mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
referer: do not send referrer when opening a link
This change augments what was already done in 54e0f2de5b
(PR with discussion
at #3636).
For documentation about the meaning of "noopener, noreferrer", see:
https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Window_functionality_features
This commit is contained in:
parent
c1c58fa7e0
commit
d3f583c9c5
1 changed files with 1 additions and 2 deletions
|
@ -3374,8 +3374,7 @@ function Ace2Inner(){
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var newWindow = window.open(n.href, '_blank');
|
window.open(n.href, '_blank', 'noopener,noreferrer');
|
||||||
newWindow.focus();
|
|
||||||
}
|
}
|
||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue