Skip to content

Instantly share code, notes, and snippets.

@hijonathan
Last active February 18, 2016 20:06
Show Gist options
  • Save hijonathan/c64fdde32cddf84261aa to your computer and use it in GitHub Desktop.
Save hijonathan/c64fdde32cddf84261aa to your computer and use it in GitHub Desktop.
Have Appcues check for new content after subtle changes to the URL.
// Notify Appcues about subtle URL changes, like a # getting added.
// Calling Appcues.start() will tell us to look for new content the user could qualify for.
(function() {
if ('onhashchange' of window) {
window.addEventListener('hashchange', function() {
if (Appcues && Appcues.start) Appcues.start;
})
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment