Skip to content

Commit

Permalink
fix: remove duplicated addUniversalAdId
Browse files Browse the repository at this point in the history
  • Loading branch information
oscnord committed Jan 31, 2024
1 parent b924921 commit 3533ba9
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions utils/vast-maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,9 @@ function AttachStandAloneAds(vast, ads, params, podSize) {
});
if (vast.attrs.version === "4.0") {
mediaNode = mediaNode
.addUniversalAdId(encodeURIComponent(`${ads[i].universalId}${i + podSize}`), {
idRegistry: "test-ad-id.eyevinn",
idValue: encodeURIComponent(`${ads[i].universalId}${i + podSize}`),
})
.addUniversalAdId(
encodeURIComponent(`${ads[i].universalId}${i + podSize}`),
{
idRegistry: 'test-ad-id.eyevinn',
encodeURIComponent(`${ads[i].universalId}${i + podSize}`), {
idRegistry: "test-ad-id.eyevinn",
idValue: encodeURIComponent(`${ads[i].universalId}${i + podSize}`),
}
);
Expand Down Expand Up @@ -206,14 +201,9 @@ function AttachPodAds(vast, podAds, params) {
});
if (vast.attrs.version === "4.0") {
mediaNode = mediaNode
.addUniversalAdId(encodeURIComponent(`${podAds[i].universalId}${i + 1}`), {
idRegistry: "test-ad-id.eyevinn",
idValue: encodeURIComponent(`${podAds[i].universalId}${i + 1}`),
})
.addUniversalAdId(
encodeURIComponent(`${podAds[i].universalId}${i + 1}`),
{
idRegistry: 'test-ad-id.eyevinn',
encodeURIComponent(`${podAds[i].universalId}${i + 1}`), {
idRegistry: "test-ad-id.eyevinn",
idValue: encodeURIComponent(`${podAds[i].universalId}${i + 1}`),
}
);
Expand Down

0 comments on commit 3533ba9

Please sign in to comment.