Merge pull request #2835 from matrix-org/dbkr/no_no_referrer

Remove noreferrer on widget pop-out
This commit is contained in:
David Baker 2019-03-27 15:17:38 +00:00 committed by GitHub
commit 1b8b3efece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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