Skip to content

Commit

Permalink
resolving linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Fauntleroy committed Oct 18, 2015
1 parent d06c97c commit 33ddd8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export default class App extends Component {
var config
try {
config = JSON.parse(this.refs.config.value)
}
catch (error) {
} catch (error) {
config = {}
}
this.setState(config)
Expand Down Expand Up @@ -72,7 +71,7 @@ export default class App extends Component {
<button onClick={this.load.bind(this, 'https://soundcloud.com/miami-nights-1984/accelerated')}>Soundcloud song</button>
<button onClick={this.load.bind(this, 'https://vimeo.com/90509568')}>Vimeo video</button>
<input ref='url' placeholder='url' />
<button onClick={()=>{this.load(this.refs.url.value)}}>Load URL</button>
<button onClick={() => { this.load(this.refs.url.value) }}>Load URL</button>
<hr />
seek: <input
type='range' min={0} max={1} step='any'
Expand Down
2 changes: 1 addition & 1 deletion src/players/SoundCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class SoundCloud extends Base {
}
SC.stream(data.uri, this.options, player => {
this.player = player
this.onReady();
this.onReady()
player.play()
player._player.on('stateChange', this.onStateChange)
})
Expand Down

0 comments on commit 33ddd8e

Please sign in to comment.