aboutsummaryrefslogtreecommitdiffstats
path: root/notifier
diff options
context:
space:
mode:
Diffstat (limited to 'notifier')
-rw-r--r--notifier/subject_hatelabo_bottle.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/notifier/subject_hatelabo_bottle.js b/notifier/subject_hatelabo_bottle.js
index 6c4a330..7a00d13 100644
--- a/notifier/subject_hatelabo_bottle.js
+++ b/notifier/subject_hatelabo_bottle.js
@@ -50,15 +50,10 @@ notifier.subject.register(notifier.SubjectHttp, {
diff: function(cache, parsed) {
var ret = [];
parsed.forEach(function(element) {
- if (!cache.some(function(c) { if (c.toString() == element.toString()) return true }))
+ if (!cache.some(function(c) { if (c.textContent == element.textContent) return true }))
ret.push(element);
});
-
return ret;
- var text = (new XMLSerializer()).serializeToString(parsed[0])
- .replace(/<[^>]+>/g, function(all) all.toLowerCase())
- .replace(/<!--(?:[^-]|-(?!->))*-->/g, ''); // actually
- return text;
},
buildMessages: function(diff) {
var ret = [];