Last active
July 12, 2018 17:35
-
-
Save brianaohern/0da7b1854bff3e8185efe8de7fddf173 to your computer and use it in GitHub Desktop.
om.Campaign.init Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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