1
0
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:
Gerard L. Petersen 2018-03-29 22:14:27 +01:00 committed by Gary Katsevman
parent 96987f8d0a
commit 228484befc

View File

@ -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_);
}