home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 80
/
MINAMI80.iso
/
Extra
/
DivXInstaller.exe
/
$PLUGINSDIR
/
GoogleToolbarFirefox.msi
/
xpi
/
amulet-jslib
/
reporter.js
< prev
next >
Wrap
Text File
|
2006-05-15
|
519b
|
15 lines
function PROT_Reporter() {
this.debugZone = "reporter";
this.reportURL = PROT_globalStore.getActionReportURL();
this.prefs_ = new G_Preferences();
}
PROT_Reporter.prototype.report = function(subject, data) {
if (!this.prefs_.getPref(PROT_globalStore.getSendUserReportsPrefName(),
false))
return;
var url = this.reportURL + "evts=" + encodeURIComponent(subject) +
"&evtd=" + encodeURIComponent(data);
G_Debug(this, "Sending report: " + url);
(new PROT_XMLFetcher(true /* strip cookies */)).get(url, null /* no cb */);
}