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:
David Baker 2019-03-27 13:27:57 +00:00
parent a1e5fecb67
commit 1fe830d1c6

View file

@ -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) {