|
|
@@ -30,6 +30,15 @@ export default class About extends React.Component {
|
|
|
show () {
|
|
|
this.setState({
|
|
|
visible: true
|
|
|
+ }, () => {
|
|
|
+ let links = this.refs.content.querySelectorAll('a')
|
|
|
+ links = Array.from(links)
|
|
|
+ links.map(a => {
|
|
|
+ a.onclick = () => {
|
|
|
+ this.openUrl(a.href)
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -41,15 +50,6 @@ export default class About extends React.Component {
|
|
|
Agent.on('show-about', () => {
|
|
|
this.show()
|
|
|
})
|
|
|
-
|
|
|
- let links = this.refs.content.querySelectorAll('a')
|
|
|
- links = Array.from(links)
|
|
|
- links.map(a => {
|
|
|
- a.onclick = () => {
|
|
|
- this.openUrl(a.href)
|
|
|
- return false
|
|
|
- }
|
|
|
- })
|
|
|
}
|
|
|
|
|
|
render () {
|