mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Remove noreferrer on widget pop-out
Having the referrer allows widgets to do customisation based on what riot instance is embedding it. It gets a referrer when we embed it in the iframe so there's nothing gained by suppressing it here.
This commit is contained in:
parent
a1e5fecb67
commit
1fe830d1c6
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…
Reference in a new issue