Hi all! I've been working on trying to get the number of Facebook
notifications to show up in the dock icon. I've managed to get it
working - kind of - using this code:
updateBadges();
function updateBadges() {
window.fluid.dockBadge = document.getElementById
('presence_notifications_count').getElementsByTagName('strong')
[0].innerHTML;
setTimeout("updateBadges", 1000);
}
The problem is that the correct count displays for about half a second
on the dock badge, and then disappears. The same thing happens if I
take out the setTimeout (meaning that it only updates once) and it
usually clears around when the page finishes loading completely. Does
anyone have any idea where this could be going wrong?
Thanks in advance for your help. If you want to try it yourself the
script is here: http://userscripts.org/scripts/show/39511
Thanks again!
Will
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"fluidapp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/fluidapp?hl=en
-~----------~----~----~----~------~----~------~--~---