Last active
February 18, 2016 20:06
-
-
Save hijonathan/c64fdde32cddf84261aa to your computer and use it in GitHub Desktop.
Have Appcues check for new content after subtle changes to the URL.
This file contains hidden or 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
// 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