Skip to content

Commit d70d49e

Browse files
committed
fix header link targets
1 parent 6962b48 commit d70d49e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

site/_core/HeaderLinks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ var HeaderLinks = React.createClass({
2323
<a
2424
key={link.section}
2525
href={link.href}
26-
target={link.href.slice(0, 4) === 'http' && '_blank'}
27-
className={link.section === this.props.section && 'active'}>
26+
target={link.href.slice(0, 4) === 'http' ? '_blank' : null}
27+
className={link.section === this.props.section ? 'active' : null}>
2828
{link.text}
2929
</a>
3030
)}

site/index.html.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ var index = React.createClass({
188188
but also smoothly follow references between them. While typical
189189
REST APIs require loading from multiple URLs, GraphQL APIs get
190190
all the data your app needs in a single request. Apps using
191-
GraphQL are quick even on slow mobile network&nbsp;connections.</p>
191+
GraphQL can be quick even on slow mobile
192+
network&nbsp;connections.</p>
192193
</div>
193194
<div className="app-to-server" aria-hidden>
194195
<img src="/img/phone.svg" width="496" height="440" />

0 commit comments

Comments
 (0)