From b44d0a222a7f1445742acae973196580ad5ede66 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Fri, 19 Dec 2014 14:22:46 +0100 Subject: [PATCH] Fix bug where notiifcation api is not supported --- src/js/util/notification.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/util/notification.js b/src/js/util/notification.js index 670d4cb..f719164 100644 --- a/src/js/util/notification.js +++ b/src/js/util/notification.js @@ -58,5 +58,7 @@ Notif.prototype.create = function(options) { }; Notif.prototype.close = function(notification) { - notification.close(); + if (notification) { + notification.close(); + } }; \ No newline at end of file