Created
July 28, 2014 20:33
-
-
Save centrix/b73ca7305f314525b340 to your computer and use it in GitHub Desktop.
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
<script> | |
var messageIntervalID = setInterval(function () { Intercom('update'); }, 30000); | |
Intercom('onHide', function() { messageIntervalID = setInterval(function () { Intercom('update'); }, 30000); }); | |
Intercom('onShow', function() { if (typeof messageIntervalID !== 'undefined') { clearInterval(messageIntervalID);};};); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment