Skip to content

Commit

Permalink
Avoid 'undefined' text in notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 2, 2013
1 parent e42b879 commit 3010b3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/Core/js/hordecore.js
Expand Up @@ -345,7 +345,9 @@ var HordeCore = {
this.alarms.push(alarm.id);
message = alarm.title.escapeHTML();
if (alarm.params && alarm.params.desktop) {
if (alarm.params.desktop.subtitle) {
if (alarm.params.desktop.subtitle === undefined) {
subtitle = '';
} else {
subtitle = alarm.params.desktop.subtitle;
}
this.desktopNotify({ title: message, text: subtitle, icon: alarm.params.desktop.icon });
Expand Down

0 comments on commit 3010b3f

Please sign in to comment.