Skip to content

Commit

Permalink
fix: make the ads VERSION inline properly (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev authored and incompl committed Mar 29, 2018
1 parent 4405f3a commit 0b67022
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0b67022

Please sign in to comment.