Merge pull request #1175 from PanHywel/master

This commit is contained in:
DIYgod 2022-08-15 21:01:32 +01:00 committed by GitHub
commit 32c389a8b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class Controller {
this.player.on('durationchange', () => {
if (this.player.video.duration !== 1 && this.player.video.duration !== Infinity) {
if (this.player.options.highlight) {
const highlights = document.querySelectorAll('.dplayer-highlight');
const highlights = this.player.template.playedBarWrap.querySelectorAll('.dplayer-highlight');
[].slice.call(highlights, 0).forEach((item) => {
this.player.template.playedBarWrap.removeChild(item);
});