Skip to content

Commit

Permalink
fix(Ads): Fix id of X-ASSET-LIST (#7662)
Browse files Browse the repository at this point in the history
Fixes #7661
  • Loading branch information
avelad committed Nov 27, 2024
1 parent dce52ff commit e88a715
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ads/interstitial_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -948,10 +948,11 @@ shaka.ads.InterstitialAdManager = class {
}
}
}
for (const asset of dataAsJson['ASSETS']) {
for (let i = 0; i < dataAsJson['ASSETS'].length; i++) {
const asset = dataAsJson['ASSETS'][i];
if (asset['URI']) {
interstitialsAd.push({
id,
id: id + '_asset_' + i,
startTime,
endTime,
uri: asset['URI'],
Expand Down

0 comments on commit e88a715

Please sign in to comment.