test
parent
5539f957b8
commit
298da82eb3
|
@ -58,7 +58,7 @@
|
||||||
videoElement.classList.add('shx-video-for-desc');
|
videoElement.classList.add('shx-video-for-desc');
|
||||||
|
|
||||||
// pause all video
|
// pause all video
|
||||||
this.videoClones.keys().forEach((key) => {
|
Object.keys(this.videoClones).forEach((key) => {
|
||||||
if (key !== this.currentVariant) {
|
if (key !== this.currentVariant) {
|
||||||
this.videoClones[key].pause();
|
this.videoClones[key].pause();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue