From d43426254049e86b871b70b21417128a901e6bd6 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Thu, 10 May 2018 16:42:28 -0400 Subject: [PATCH] Remove last notification before creating new one --- js/notifications.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/notifications.js b/js/notifications.js index 759af602c..a6cd20a9d 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -128,6 +128,9 @@ drawAttention(); + if (this.lastNotification) { + this.lastNotification.close(); + } const notification = new Notification(title, { body: message, icon: iconUrl,