Skip to content

Instantly share code, notes, and snippets.

@brianaohern
Last active July 12, 2018 17:35
Show Gist options
  • Select an option

  • Save brianaohern/0da7b1854bff3e8185efe8de7fddf173 to your computer and use it in GitHub Desktop.

Select an option

Save brianaohern/0da7b1854bff3e8185efe8de7fddf173 to your computer and use it in GitHub Desktop.
om.Campaign.init Example
document.addEventListener('om.Campaign.init', function(event) {
// Add your own logic here to check if a video is playing
if (event.detail.Campaign.id === "CAMPAIGN_ID") {
document.querySelector('#om-' + event.detail.Campaign.id).remove();
}
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment