aboutsummaryrefslogtreecommitdiffstats
path: root/hatebuWatchDog.js
diff options
context:
space:
mode:
Diffstat (limited to 'hatebuWatchDog.js')
-rw-r--r--hatebuWatchDog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/hatebuWatchDog.js b/hatebuWatchDog.js
index 476cbf4..0a683e4 100644
--- a/hatebuWatchDog.js
+++ b/hatebuWatchDog.js
@@ -119,13 +119,13 @@ let publics = plugins.hatebuWatchDog = (function() {
);
let currentValue;
- req.addEventListener("onSuccess", function(data) {
+ req.addEventListener("success", function(data) {
liberator.log("XML-RPC request was succeeded.");
let resXml = new XML(data.responseText.replace(/^<\?xml version[^>]+?>/, ''));
currentValue = window.eval(resXml..int.toString());
onSuccess(currentValue);
});
- req.addEventListener("onFailure", function(data) {
+ req.addEventListener("failure", function(data) {
onFailure();
});
liberator.log("reauest...");