Skip to content

Instantly share code, notes, and snippets.

@brianaohern
Created July 12, 2018 14:09
Show Gist options
  • Select an option

  • Save brianaohern/1944556e19ec8c2ed551ce1cf6953aff to your computer and use it in GitHub Desktop.

Select an option

Save brianaohern/1944556e19ec8c2ed551ce1cf6953aff to your computer and use it in GitHub Desktop.
om.Campaign.afterClose Example
document.addEventListener('om.Campaign.afterClose', function(event) {
if (event.detail.Campaign.id === "CAMPAIGN_ID") {
// Add your own logic to play video on page
}
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment