From fc9afcc234544948306aa569e4df739537a31fc2 Mon Sep 17 00:00:00 2001 From: Adam Gian Date: Mon, 5 Feb 2018 13:50:35 +1000 Subject: [PATCH] =?UTF-8?q?Migrate=20to=206=20=E2=80=94=20use=20newer=20'r?= =?UTF-8?q?egisterPlugin'=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/videojs-chapter-thumbnail.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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();