Ability to dismiss unhandled notifications

pull/1/head
yflory 5 years ago
parent b7034cd5a1
commit bb53a78bfc

@ -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) {

Loading…
Cancel
Save