diff options
author | Renard | 2020-03-09 12:10:16 -0300 |
---|---|---|
committer | Renard | 2020-03-09 12:10:16 -0300 |
commit | 21e24d597fe7f7bfff5a587540784482a301be0a (patch) | |
tree | 9ecdd035206586ffb631ac56a12349c877a286a6 /src/App.js | |
parent | a05cf36bc811e6aa711cac7a83e6af2fb54d0619 (diff) | |
download | bairadio-app-21e24d597fe7f7bfff5a587540784482a301be0a.tar.gz bairadio-app-21e24d597fe7f7bfff5a587540784482a301be0a.tar.xz bairadio-app-21e24d597fe7f7bfff5a587540784482a301be0a.zip |
Consola solo en development build
Diffstat (limited to 'src/App.js')
-rw-r--r-- | src/App.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -45,7 +45,7 @@ class App extends Component { return prevCount === this.streamCount; } - log(object) { + debug(object) { if (process.env.NODE_ENV === "development") { console.log(object); } @@ -108,7 +108,7 @@ class App extends Component { fetch("https://bienvenidoainternet.org:8443/status-json.xsl") .then(response => response.json()) .then(result => { - this.log(result); + this.debug(result); this.checkStream(result); const source = result.icestats.source; if (source !== undefined) { @@ -179,7 +179,7 @@ class App extends Component { text: `[${stream.listeners}] ${stream.server_name} - ${stream.server_description}` }) ); - console.log(streams); + this.debug(streams); this.setState({ multipleSources: true, streamsAvailable: streams, |