mirror of https://github.com/vector-im/riot-web
Allow arbitrary hrefs for cookie/privacy links
parent
d01e738839
commit
4e6594d64b
|
@ -19,11 +19,11 @@ import dis from '../../../dispatcher';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
|
|
||||||
const PrivacyLink = (sub) =>
|
const makeLink = (href) => (sub) =>
|
||||||
<a
|
<a
|
||||||
className="mx_MatrixToolbar_link"
|
className="mx_MatrixToolbar_link"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href="https://riot.im/privacy"
|
href={href}
|
||||||
>
|
>
|
||||||
{ sub }
|
{ sub }
|
||||||
</a>;
|
</a>;
|
||||||
|
@ -56,8 +56,8 @@ export default React.createClass({
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
// XXX: We need to link to the page that explains our cookies
|
// XXX: We need to link to the page that explains our cookies
|
||||||
'CookieLink': PrivacyLink,
|
'CookieLink': makeLink("https://riot.im/privacy"),
|
||||||
'PrivacyLink': PrivacyLink,
|
'PrivacyLink': makeLink("https://riot.im/privacy"),
|
||||||
},
|
},
|
||||||
) }
|
) }
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue