Ability to dismiss unhandled notifications

This commit is contained in:
yflory 2019-09-03 17:31:06 +02:00
parent b7034cd5a1
commit bb53a78bfc

View File

@ -276,6 +276,9 @@ define([
// add getters to access simply some informations // add getters to access simply some informations
data.content.isClickable = typeof data.content.handler === "function"; data.content.isClickable = typeof data.content.handler === "function";
data.content.isDismissible = typeof data.content.dismissHandler === "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) { remove: function (common, data) {