Are you looking for a way to detect which operating system (OS) is used from the inside an Firefox extension?
http://www.quirksmode.org/js/detect.html <- wrong way
Right way:
var OS = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULRuntime).OS;
alert(OS);
alert(OS);
hi there, outstanding blog site, and a great understand! at least one for my bookmarking.
That is an issue I need to find more information about, appreciate the posting.
On the first sentence it seems to look like it were correct but if you prove it i cant see the point of this.
Hi Karol, I tested the source it’s fully working. Maybe you missed the 2nd line of the code.
at the first sentence it seems to look like it was correct but if you look closely there is no sense of this!!
Thanks Kalloch, it was a little bit messed up. Anyway the source code provided was speaking for itself.