Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 666431900
  • Loading branch information
Interactive Media Ads Developer Relations authored and IMA Developer Relations committed Aug 22, 2024
1 parent c95e0bf commit 45830a7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vpaid/nonlinear/VpaidNonLinear.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,7 @@ const VpaidNonLinear = class {
* @return {number} The time remaining in the ad.
*/
getAdRemainingTime() {
const date = new Date();
const currentTime = date.getTime();
const remainingTime =
this.attributes_.duration - (currentTime - this.startTime_) / 1000.0;
return remainingTime;
return this.attributes_['remainingTime'];
}

/**
Expand Down

0 comments on commit 45830a7

Please sign in to comment.