For a couple of months I’ve been developing a Firefox extension called BlipFox - an interface to Blip, Polish way-better-than-the-original-Twitter-clone. With Firefox 3 coming soon I had to get my extension ready for the final release.
Due to some chrome changes and bugs I had to update some code related to dynamic overlay rendering. Now all I need to know is whether the extensions is installed on Firefox 2 or Firefox 3, hence this snippet of code:
function isFF3() { var foo = Components.classes["@mozilla.org/login-manager;1"]; return typeof foo === 'function'; }
How do you like? Let me know if there are other methods of detecting Firefox 3 (more elegant, perhaps?).
0 Responses to “[Hint] Detecting Firefox 3 in extensions”
Leave a Reply