Hello, I'm curious on how this can be done, I've searched on Google and the documentation on this seems to be very thin. I know how to set the badge number, the only problem is that it affects all of the tabs, and I just want it to affect the active tab, as the number varies from website to website.
This is the code I have to change the badge number, but can anyone tell me what I have to change to make it work for the current tab?
safari.extension.toolbarItems[0].badge = 2;
Thank you.