Skip to content

Commit

Permalink
use in operator against the correct object
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Dec 12, 2024
1 parent 3eedb7d commit c935706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -4051,12 +4051,12 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
for (const keySystem in config['drm']['advanced']) {
const {videoRobustness, audioRobustness} =
config['drm']['advanced'][keySystem];
if ('videoRobustness' in keySystem &&
if ('videoRobustness' in config['drm']['advanced'][keySystem] &&
!Array.isArray(keySystem['videoRobustness'])) {
keySystem['videoRobustness'] = [videoRobustness];
fixedUp = true;
}
if ('audioRobustness' in keySystem &&
if ('audioRobustness' in config['drm']['advanced'][keySystem] &&
!Array.isArray(keySystem['audioRobustness'])) {
keySystem['audioRobustness'] = [audioRobustness];
fixedUp = true;
Expand Down

0 comments on commit c935706

Please sign in to comment.