Index: lib/notificationHelper.js |
=================================================================== |
--- a/lib/notificationHelper.js |
+++ b/lib/notificationHelper.js |
@@ -247,16 +247,6 @@ |
}; |
/** |
- * Shows the next notification (if any) for the supplied URL. |
- * |
- * @param {URL} url URL to match notifications to |
- */ |
-exports.showNextNotificationForUrl = function(url) |
-{ |
- NotificationStorage.showNext(stringifyURL(url)); |
-}; |
- |
-/** |
* Gets the active notification to be shown if any. |
* |
* @return {?object} |
@@ -281,4 +271,9 @@ |
return methods.indexOf(method) > -1; |
}; |
+ext.pages.onLoading.addListener(page => |
+{ |
+ NotificationStorage.showNext(stringifyURL(page.url)); |
+}); |
+ |
NotificationStorage.addShowListener(showNotification); |