From fb04cff70a5f0e73450aa9560a49a64432616af2 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 21 Aug 2018 10:50:57 -0400 Subject: [PATCH] Updates the plugin to make it work with videojs 7. (#10) * Updates the plugin to make it work with videojs 7. * Adds an example page. Stores the player object since due to some reason the call to `this.player()` returns undefined the second time it is called on the close function. * Adds a parameter to disable or enable the socials filtering due to the mobile device check. * Fixes husky warnings. * Upgrades videojs version on package.json and on travis config file. * Updates videojs dependency so that it acepts either ^6 || ^7. * Bumps up the plugin version. Since this not working anymore with versions 5 and under the version has been numped up to indicate breaking changes. --- .travis.yml | 2 +- README.md | 9 +- package-lock.json | 2699 +++++++++++++++++++------------------- package.json | 8 +- src/ShareModal.js | 12 +- src/ShareModalContent.js | 2 +- src/defaults.js | 1 + src/plugin.js | 85 +- src/utils.js | 12 +- 9 files changed, 1431 insertions(+), 1399 deletions(-) diff --git a/.travis.yml b/.travis.yml index a655149..ad38ea9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,8 +20,8 @@ before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start env: - - VJS=5 - VJS=6 + - VJS=7 addons: firefox: latest apt: diff --git a/README.md b/README.md index d4e33a0..8e2daa2 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,9 @@ Copying to clipboard is done via [clipboard.js][clipboardjs]. -## Installation +- [Version Support](#version-support) +- [Version Support](#version-support) - [Installation](#installation) - [Usage](#usage) - [`