fix parenthesis

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
San
2022-05-30 20:44:14 -07:00
committed by GitHub
parent ac01a26dcc
commit c65a6dc888
@@ -646,7 +646,10 @@ export default function () {
}
function bindToPlayer(context, player) {
if ((releaseCurrentPlayer(), currentPlayer = player, player)) {
releaseCurrentPlayer();
currentPlayer = player;
if (player) {
const state = playbackManager.getPlayerState(player);
onStateChanged.call(player, {
type: 'init'