From 5da778c5e1d58035db1326d8362aa299dc04a4b1 Mon Sep 17 00:00:00 2001 From: Gary Katsevman Date: Mon, 26 Feb 2018 14:50:54 -0500 Subject: [PATCH] fix: make the ads VERSION inline properly --- src/plugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugin.js b/src/plugin.js index 3a8c9b70..6673ffd6 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -5,6 +5,8 @@ that live in in separate files. import videojs from 'video.js'; +import {version as adsVersion} from '../package.json'; + import redispatch from './redispatch.js'; import initializeContentupdate from './contentupdate.js'; import adMacroReplacement from './macros.js'; @@ -165,7 +167,7 @@ const contribAdsPlugin = function(options) { // This is experimental currently. Do not rely on its presence or behavior! adType: null, - VERSION: '__VERSION__', + VERSION: adsVersion, reset() { player.ads.disableNextSnapshotRestore = false;