Last active
March 12, 2021 06:08
-
-
Save jittarao/771cb42bcb7b2a1addef11fd8b4a627b 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> | |
/* Hide Gist Messenger Launcher on page load */ | |
gist.chat('hideLauncher'); | |
/* open the Messenger when you receive a message */ | |
document.addEventListener("onGistUnreadCountChange", function(e) { | |
if(window.gistUnreadCount > 0) { | |
gist.chat('open'); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment