From 19923004ab8bdffe3c4d4b535f2af180a701b9a9 Mon Sep 17 00:00:00 2001 From: Brandon Casey Date: Mon, 17 Sep 2018 12:07:24 -0400 Subject: [PATCH] fix: report correct version (#57) --- src/plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin.js b/src/plugin.js index 43f6630..8b8ca25 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -1,5 +1,6 @@ import videojs from 'video.js'; import QualityLevelList from './quality-level-list.js'; +import {version as VERSION} from '../package.json'; // vjs 5/6 support const registerPlugin = videojs.registerPlugin || videojs.plugin; @@ -50,6 +51,6 @@ const qualityLevels = function(options) { registerPlugin('qualityLevels', qualityLevels); // Include the version number. -qualityLevels.VERSION = '__VERSION__'; +qualityLevels.VERSION = VERSION; export default qualityLevels;