Skip to content

Instantly share code, notes, and snippets.

@patocallaghan
Last active August 29, 2015 14:14
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 patocallaghan/70a00e83ba9b524fd5c0 to your computer and use it in GitHub Desktop.
Save patocallaghan/70a00e83ba9b524fd5c0 to your computer and use it in GitHub Desktop.
Setup Intercom for EmberJS
var IntercomInitializer = {
name: 'intercom',
initialize: function(container, application){
var router = container.lookup('router:main');
router.on('didTransition', function(){
if(window.Intercom) {
window.Intercom('update');
}
});
}
};
export default IntercomInitializer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment