fix player controls disabled on audio in other app

This commit is contained in:
austinried 2021-07-28 09:17:36 +09:00
parent ff0464a156
commit c58f860520

View File

@ -225,16 +225,11 @@ const PlayerControls = () => {
playPauseIcon = 'pause-circle'
playPauseAction = pause
break
case State.Paused:
default:
disabled = false
playPauseIcon = 'play-circle'
playPauseAction = play
break
default:
disabled = true
playPauseIcon = 'play-circle'
playPauseAction = undefined
break
}
return (