diff --git a/package.json b/package.json index 8cca71a..97d21b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "videojs-vtt-thumbnails", - "version": "0.0.4", + "version": "0.0.5", "description": "Display thumnails on progress bar hover, driven by external VTT files.", "main": "dist/videojs-vtt-thumbnails.cjs.js", "module": "dist/videojs-vtt-thumbnails.es.js", diff --git a/src/plugin.js b/src/plugin.js index 3ade963..09dd338 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -84,6 +84,7 @@ class vttThumbnailsPlugin { } resetPlugin() { + this.thumbnailHolder.parentNode.removeChild(this.thumbnailHolder); this.progressBar.removeEventListener('mouseenter', this.registeredEvents.progressBarMouseEnter); this.progressBar.removeEventListener('mouseleave', this.registeredEvents.progressBarMouseLeave); this.progressBar.removeEventListener('mousemove', this.registeredEvents.progressBarMouseMove);