Skip to content

Commit cf128d6

Browse files
committed
1.3.3
1 parent 6b5eaee commit cf128d6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

dist/danmaku.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@
129129
if (cmtt >= ct) {
130130
break;
131131
}
132-
cmt._utc = dn - (this._hasMedia ? (this.media.currentTime - cmt.time) : 0);
132+
if (this._hasMedia) {
133+
cmt._utc = dn - (this.media.currentTime - cmt.time);
134+
}
133135
cmt.node = cmt.node || createCommentNode(cmt);
134136
this.runningList.push(cmt);
135137
pendingList.push(cmt);
@@ -265,7 +267,9 @@
265267
if (cmtt >= ct) {
266268
break;
267269
}
268-
cmt._utc = dn - (this._hasMedia ? (this.media.currentTime - cmt.time) : 0);
270+
if (this._hasMedia) {
271+
cmt._utc = dn - (this.media.currentTime - cmt.time);
272+
}
269273
cmt.canvas = createCommentCanvas(cmt, this._fontSize);
270274
cmt.y = allocate.call(this, cmt);
271275
if (cmt.mode === 'top' || cmt.mode === 'bottom') {

0 commit comments

Comments
 (0)