mirror of
https://github.com/videojs/video.js.git
synced 2025-02-02 11:34:50 +02:00
fix(time-display): Use formatTime for a consistent default instead of hardcoded string (#5055)
This is especially useful if a custom format time is being used.
This commit is contained in:
parent
96987f8d0a
commit
228484befc
@ -78,7 +78,7 @@ class TimeDisplay extends Component {
|
||||
this.contentEl_.removeChild(this.contentEl_.firstChild);
|
||||
}
|
||||
|
||||
this.textNode_ = document.createTextNode(this.formattedTime_ || '0:00');
|
||||
this.textNode_ = document.createTextNode(this.formattedTime_ || this.formatTime_(0));
|
||||
this.contentEl_.appendChild(this.textNode_);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user