fix a bug and update gitignore
This commit is contained in:
parent
81c5395639
commit
3e961cb789
|
@ -1,3 +1,4 @@
|
||||||
/node_modules
|
/node_modules
|
||||||
/dev
|
/dev
|
||||||
.cache
|
.cache
|
||||||
|
/build
|
|
@ -15,13 +15,11 @@ class NowPlaying extends Component {
|
||||||
const { playStatus, loading } = this.props.player
|
const { playStatus, loading } = this.props.player
|
||||||
const { img, title, podcast } = this.props.player.track
|
const { img, title, podcast } = this.props.player.track
|
||||||
const podcastLoading = playStatus === 'PLAYING' && loading
|
const podcastLoading = playStatus === 'PLAYING' && loading
|
||||||
|
|
||||||
let podcastImage = ''
|
let podcastImage = ''
|
||||||
|
|
||||||
if (title) {
|
if (title) {
|
||||||
podcastImage = podcasts
|
podcastImage = podcasts
|
||||||
.filter(p => p.name === podcast)[0]
|
.filter(p => p.name === podcast)[0]
|
||||||
.img.replace(/100x100/g, '30x30')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue