XPCOM onCheckNow

I use from my addon in overlay:

com.tobwithu.xnotifier.onCheckNow();

to check new email.

How to do to check from a XPCOM component.js not overlay?

tobwithu's picture

var xn_main=Components.classes["@tobwithu.com/xnotifier;1"].getService().wrappedJSObject;
 xn_main.checkAll(false);

Ty ;)