Explorar o código

Update subtitle.js

Harvey Zack %!s(int64=7) %!d(string=hai) anos
pai
achega
134d4df546
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/js/subtitle.js

+ 1 - 1
src/js/subtitle.js

@@ -23,7 +23,7 @@ class Subtitle {
                     const template = document.createElement('div');
                     template.appendChild(cue.getCueAsHTML());
                     const trackHtml = template.innerHTML.split(/\r?\n/).map(item => `<p>${item}</p>`).join('');
-                    this.container.insertAdjacentHTML('beforeend', trackHtml);
+                    this.container.innerHTML = trackHtml;
                 }
                 this.events.trigger('subtitle_change');
             };