mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Allow arbitrary hrefs for cookie/privacy links
This commit is contained in:
parent
c191464e97
commit
e98b31958b
1 changed files with 4 additions and 4 deletions
|
@ -19,11 +19,11 @@ import dis from '../../../dispatcher';
|
|||
import { _t } from '../../../languageHandler';
|
||||
import sdk from '../../../index';
|
||||
|
||||
const PrivacyLink = (sub) =>
|
||||
const makeLink = (href) => (sub) =>
|
||||
<a
|
||||
className="mx_MatrixToolbar_link"
|
||||
target="_blank"
|
||||
href="https://riot.im/privacy"
|
||||
href={href}
|
||||
>
|
||||
{ sub }
|
||||
</a>;
|
||||
|
@ -56,8 +56,8 @@ export default React.createClass({
|
|||
{},
|
||||
{
|
||||
// XXX: We need to link to the page that explains our cookies
|
||||
'CookieLink': PrivacyLink,
|
||||
'PrivacyLink': PrivacyLink,
|
||||
'CookieLink': makeLink("https://riot.im/privacy"),
|
||||
'PrivacyLink': makeLink("https://riot.im/privacy"),
|
||||
},
|
||||
) }
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue