Skip to content

Instantly share code, notes, and snippets.

@jtsternberg
Forked from brianaohern/om-Action-refresh.js
Created November 15, 2018 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtsternberg/0b3f93994b5654b16715e6960b0cf2f7 to your computer and use it in GitHub Desktop.
Save jtsternberg/0b3f93994b5654b16715e6960b0cf2f7 to your computer and use it in GitHub Desktop.
Runs before a new window is opened based on an action.
document.addEventListener('om.Action.window', function(event) {
// This event is passed the Campaign object
console.log(event.detail.Campaign);
// This event is passed the Action object
console.log(event.detail.Action);
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment