Merge pull request #2835 from matrix-org/dbkr/no_no_referrer
Remove noreferrer on widget pop-out
This commit is contained in:
commit
1b8b3efece
1 changed files with 2 additions and 2 deletions
|
@ -495,9 +495,9 @@ export default class AppTile extends React.Component {
|
||||||
|
|
||||||
_onPopoutWidgetClick(e) {
|
_onPopoutWidgetClick(e) {
|
||||||
// Using Object.assign workaround as the following opens in a new window instead of a new tab.
|
// Using Object.assign workaround as the following opens in a new window instead of a new tab.
|
||||||
// window.open(this._getSafeUrl(), '_blank', 'noopener=yes,noreferrer=yes');
|
// window.open(this._getSafeUrl(), '_blank', 'noopener=yes');
|
||||||
Object.assign(document.createElement('a'),
|
Object.assign(document.createElement('a'),
|
||||||
{ target: '_blank', href: this._getSafeUrl(), rel: 'noopener noreferrer'}).click();
|
{ target: '_blank', href: this._getSafeUrl(), rel: 'noopener'}).click();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onReloadWidgetClick(e) {
|
_onReloadWidgetClick(e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue