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.pull/21833/head
parent
a1e5fecb67
commit
1fe830d1c6
|
@ -495,9 +495,9 @@ export default class AppTile extends React.Component {
|
|||
|
||||
_onPopoutWidgetClick(e) {
|
||||
// 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'),
|
||||
{ target: '_blank', href: this._getSafeUrl(), rel: 'noopener noreferrer'}).click();
|
||||
{ target: '_blank', href: this._getSafeUrl(), rel: 'noopener'}).click();
|
||||
}
|
||||
|
||||
_onReloadWidgetClick(e) {
|
||||
|
|
Loading…
Reference in New Issue