Created
July 14, 2015 19:15
-
-
Save jpjoyal/57904d6d6fe16465d345 to your computer and use it in GitHub Desktop.
Anonymous SupportKit, with email later
This file contains 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
SupportKit.init({appToken: window.site_config.supportkit_appkey}); | |
SupportKit.on('ready', function() { | |
if(youHaveTheGuyEmail){ | |
SupportKit.updateUser({email: props['$email']}); | |
} | |
}); | |
//[more stuff happen and the email becomes known....] | |
SupportKit.updateUser({email: props['$email']}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment