Skip to content

Commit

Permalink
conditionally render playground
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Jul 16, 2017
1 parent 72b55d5 commit ba0a0aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/javascripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ class App extends PureComponent {
}
}

render(<App />, document.getElementById('image-api-playground'));
const playground = document.getElementById('image-api-playground');

if (playground) {
render(<App />, playground);
}

0 comments on commit ba0a0aa

Please sign in to comment.