react-soundplayer
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -44,4 +44,9 @@ 'use strict'; | ||
} | ||
this.soundCloudAudio = new _SoundCloudAudio2['default'](props.clientId); | ||
// Dont create a SoundCloudAudio instance | ||
// if there is no `window` | ||
if ('undefined' !== typeof window) { | ||
this.soundCloudAudio = new _SoundCloudAudio2['default'](props.clientId); | ||
} | ||
this.state = { | ||
@@ -48,0 +53,0 @@ duration: 0, |
{ | ||
"name": "react-soundplayer", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Create custom SoundCloud players with React", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
63522
1107