Skip to content

Commit

Permalink
fix(Ads): Fix mangled properties when using X-ASSET-LIST (#7002)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Jul 8, 2024
1 parent 9e1f4e7 commit ade19cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ads/interstitial_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,12 +665,12 @@ shaka.ads.InterstitialAdManager = class {
const dataAsJson =
/** @type {!shaka.ads.InterstitialAdManager.AssetsList} */ (
JSON.parse(data));
for (const asset of dataAsJson.ASSETS) {
if (asset.URI) {
for (const asset of dataAsJson['ASSETS']) {
if (asset['URI']) {
interstitialsAd.push({
startTime: hlsInterstitial.startTime,
endTime: hlsInterstitial.endTime,
uri: asset.URI,
uri: asset['URI'],
isSkippable,
canJump,
resumeOffset,
Expand Down

0 comments on commit ade19cb

Please sign in to comment.