Skip to content

Instantly share code, notes, and snippets.

@ddollar
Created May 14, 2014 13:26
Show Gist options
  • Save ddollar/9f56b83d979d17f09088 to your computer and use it in GitHub Desktop.
Save ddollar/9f56b83d979d17f09088 to your computer and use it in GitHub Desktop.
trello.fluid.js
(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