Skip to content

Commit de8c71c

Browse files
Generate latest bundle
1 parent 5baf3ed commit de8c71c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/mparticle-media.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ var MediaSession = /** @class */ (function () {
527527
configurable: true
528528
});
529529
MediaSession.prototype.mediaTimeSpent = function () {
530-
return this.mediaSessionEndTimestamp - this.mediaSessionStartTimestamp;
530+
return Date.now() - this.mediaSessionStartTimestamp;
531531
};
532532
MediaSession.prototype.mediaContentTimeSpent = function () {
533533
if (this.currentPlaybackStartTimestamp) {

dist/mparticle-media.iife.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ var MediaSession = (function () {
528528
configurable: true
529529
});
530530
MediaSession.prototype.mediaTimeSpent = function () {
531-
return this.mediaSessionEndTimestamp - this.mediaSessionStartTimestamp;
531+
return Date.now() - this.mediaSessionStartTimestamp;
532532
};
533533
MediaSession.prototype.mediaContentTimeSpent = function () {
534534
if (this.currentPlaybackStartTimestamp) {

0 commit comments

Comments
 (0)