home *** CD-ROM | disk | FTP | other *** search
/ Minami 83 / MINAMI83.iso / Extra / DivXInstaller.exe / $PLUGINSDIR / GoogleToolbarFirefox.msi / xpi / amulet-jslib / reporter.js < prev    next >
Text File  |  2006-08-07  |  519b  |  15 lines

  1. function PROT_Reporter() {
  2. this.debugZone = "reporter";
  3. this.reportURL = PROT_globalStore.getActionReportURL();
  4. this.prefs_ = new G_Preferences();
  5. }
  6. PROT_Reporter.prototype.report = function(subject, data) {
  7. if (!this.prefs_.getPref(PROT_globalStore.getSendUserReportsPrefName(),
  8. false))
  9. return;
  10. var url = this.reportURL + "evts=" + encodeURIComponent(subject) +
  11. "&evtd=" + encodeURIComponent(data);
  12. G_Debug(this, "Sending report: " + url);
  13. (new PROT_XMLFetcher(true /* strip cookies */)).get(url, null /* no cb */);
  14. }
  15.