From bb53a78bfc92078544ea3ff651d40994a283291f Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 3 Sep 2019 17:31:06 +0200 Subject: [PATCH] Ability to dismiss unhandled notifications --- www/common/notifications.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/notifications.js b/www/common/notifications.js index 9dfce68e4..150ec51fd 100644 --- a/www/common/notifications.js +++ b/www/common/notifications.js @@ -276,6 +276,9 @@ define([ // add getters to access simply some informations data.content.isClickable = typeof data.content.handler === "function"; data.content.isDismissible = typeof data.content.dismissHandler === "function"; + } else { + data.content.dismissHandler = defaultDismiss(common, data); + data.content.isDismissible = typeof data.content.dismissHandler === "function"; } }, remove: function (common, data) {