diff options
author | Joas Schilling <coding@schilljs.com> | 2016-11-09 16:02:39 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-09 16:02:39 +0300 |
commit | 6fb19571b817ddeb4f4bf42be15d12141bd63a65 (patch) | |
tree | d0d7c70bcfd89f34337e93e27f127df3f0fb8dca /js/notification.js | |
parent | 0c189f858af9995351dac1409ab770b1a4fc3536 (diff) |
Do not show unparsed HTML in the desktop notification
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'js/notification.js')
-rw-r--r-- | js/notification.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/notification.js b/js/notification.js index 50ac13c..cbbdcaf 100644 --- a/js/notification.js +++ b/js/notification.js @@ -66,6 +66,10 @@ ); } + return this.getPlainSubject(); + }, + + getPlainSubject: function() { return this.data.subject; }, @@ -112,7 +116,8 @@ * @param {Function} template */ renderElement: function(template) { - return template(_.extend(this.data, { + var temp = _.extend({}, this.data); + return template(_.extend(temp, { subject: this.getSubject(), link: this.getLink(), message: this.getMessage() |