diff --git a/package.json b/package.json index 68495e5..0e3e8d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "videojs-chapter-thumbnails", - "version": "3.2.0", + "version": "3.2.1", "description": "Video.js plugin for supporting chapter thumbnails", "main": "./dist/videojs.chapter-thumbnails.min.js", "style": "./dist/videojs.chapter-thumbnails.min.css", diff --git a/src/videojs-chapter-thumbnail.js b/src/videojs-chapter-thumbnail.js index d376342..85d4eb3 100644 --- a/src/videojs-chapter-thumbnail.js +++ b/src/videojs-chapter-thumbnail.js @@ -115,7 +115,9 @@ export default class ChapterThumbnails { } } -videojs.plugin('chapter_thumbnails', function chapterThumbnails(options) { +const registerPlugin = videojs.registerPlugin || videojs.plugin; + +registerPlugin('chapter_thumbnails', function chapterThumbnails(options) { const chapterThumbnail = new ChapterThumbnails(this, options); chapterThumbnail.addComponent();