aboutsummaryrefslogtreecommitdiffstats
path: root/notifier/subject_liberator_echomsg.js
diff options
context:
space:
mode:
Diffstat (limited to 'notifier/subject_liberator_echomsg.js')
-rw-r--r--[-rwxr-xr-x]notifier/subject_liberator_echomsg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/notifier/subject_liberator_echomsg.js b/notifier/subject_liberator_echomsg.js
index 5c963ef..b77f2ab 100755..100644
--- a/notifier/subject_liberator_echomsg.js
+++ b/notifier/subject_liberator_echomsg.js
@@ -57,10 +57,10 @@ notifier.subject.register(notifier.Subject, {
check: function() {
try {
this.__updating__ = true;
- this.messages = this.messages.filter(function(m) !this.filter.some(function(f) (m.indexOf(f) > -1 || m.match(f))), this);
+ this.messages = this.messages.filter(function(m) !this.filter.some(function(f) m.indexOf(f) > -1 || m.match(f) ? true : false), this);
if (!this.messages.length) return;
- var msg = '<ul><li>' + this.messages.join('</li><li>') + '</li></ul>';
+ let msg = '<ul><li>' + this.messages.join('</li><li>') + '</li></ul>';
this.messages = [];
this.notify(new notifier.Message('liberator.echomsg', msg));