For extensions that want to support multiple browsers (e.g. Firefox, Flock, Songbird, etc.), it can be necessary to check to see which app we're in. To check this you can check nsIXULAppInfo for either the application ID (.ID) or application name (.name)
var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
.getService(Components.interfaces.nsIXULAppInfo);
alert(appInfo.ID); // should be songbird@songbirdnest.com
alert(appInfo.name); // should be Songbird
If you're in a web page and utilising the Songbird Webpage API, you can merely check for the presence of the songbird Javascript object
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |