Created
May 14, 2014 13:26
-
-
Save ddollar/9f56b83d979d17f09088 to your computer and use it in GitHub Desktop.
trello.fluid.js
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
(function () { | |
window.setInterval(function() { | |
var notifications = document.getElementsByClassName('js-unread-note-count')[0]; | |
if (notifications && (notifications > 0)) { | |
window.fluid.dockBadge = notifications; | |
} else { | |
window.fluid.dockBadge = ''; | |
} | |
}, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment