[Project_owners] Re: Getting the gecok version
Philip Chee
philip.chee at gmail.com
Sat Sep 23 04:24:56 EDT 2006
On 23/09/2006 00:14, HJ van Rantwijk wrote:
> Neil wrote:
>> SeaMonkey also has a XULAppInfo implementation.
> Ok, and how do we use it? I can't find nsIXULAppInfo.idl in SeaMonkey.
Example:
AHSprefMan.prototype.isSeaMonkey = function()
{
const SEAMONKEY_ID = "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}";
var nsIXULAppInfo = Components.classes["@mozilla.org/xre/app-info;1"]
.getService(Components.interfaces.nsIXULAppInfo);
return (nsIXULAppInfo.ID == SEAMONKEY_ID);
}
Phil
--
Philip Chee <philip at aleytys.pc.my>, <philip.chee at gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]C++ programmers do it with class.
* TagZilla 0.059
More information about the Project_owners
mailing list