Skip to content

Commit

Permalink
Added a showAdsLabel option to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fanderzon committed Dec 13, 2016
1 parent c4e8f77 commit f0350d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/plugin/videojs.vast.vpaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ module.exports = function VASTPlugin(options) {

/*** Local functions ****/
function addAdsLabel() {
if (settings.showAdsLabel === false) {
return;
}
if (adFinished || player.controlBar.getChild('AdsLabel')) {
return;
}
Expand Down

0 comments on commit f0350d7

Please sign in to comment.