Skip to content

Commit

Permalink
fix: Only update text track mode if changed (#4368)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev authored May 18, 2017
1 parent 3f7e215 commit a1763dc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ class TextTrackMenuItem extends MenuItem {
}

if (track === this.track) {
track.mode = 'showing';
} else {
if (track.mode !== 'showing') {
track.mode = 'showing';
}
} else if (track.mode !== 'disabled') {
track.mode = 'disabled';
}
}
Expand Down

0 comments on commit a1763dc

Please sign in to comment.