TabAttack
TabAttack copied to clipboard
Render retina (2x) version of the icon
I don't have a Retina MacBook or any other machine with high-dpi screen to test this. But if anyone wants to pick this up, pull requests are welcome.
Ideally this wouldn't incur rendering the retina version for users who will never see it and vice-versa. Unfortunately it looks like chrome.browserAction.setIcon only accepts both sizes (19 square and 38 square) at the same time for everybody.
I just found out about the existence of window.devicePixelRatio
. So that would help with deciding which size to render the icon at.