Index: lib/notificationHelper.js |
diff --git a/lib/notificationHelper.js b/lib/notificationHelper.js |
index d0ecabecf5c60b337ebdbf329fcc1ca083d48cac..49a8def40ec93651be93c16fe551d15803042d6e 100644 |
--- a/lib/notificationHelper.js |
+++ b/lib/notificationHelper.js |
@@ -294,6 +294,15 @@ exports.shouldDisplay = (method, notificationType) => |
return methods.includes(method); |
}; |
+/** |
+ * Tidies up after a notification was clicked. |
+ */ |
+exports.notificationClicked = () => |
+{ |
+ if (activeNotification) |
+ activeNotification.onClicked(); |
+}; |
+ |
ext.pages.onLoading.addListener(page => |
{ |
NotificationStorage.showNext(stringifyURL(page.url)); |