Skip to content

Instantly share code, notes, and snippets.

@brianaohern
Last active December 10, 2021 10:37
Show Gist options
  • Select an option

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

Select an option

Save brianaohern/cc26ed4bceb3d3c617555eb6029ca806 to your computer and use it in GitHub Desktop.
om.Optin.success Example
document.addEventListener('om.Optin.success', function(event) {
event.detail.Campaign.startClose();
} );
@kevingates
Copy link

kevingates commented Aug 2, 2018

I believe this one should be updated. You're missing a closing semicolon on the event script.

document.addEventListener('om.Optin.success', function(event) {
	event.detail.Campaign.startClose();
} );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment