Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -47,16 +47,17 @@ var ElemHide = require("elemHide").ElemH |
var defaultMatcher = require("matcher").defaultMatcher; |
var Prefs = require("prefs").Prefs; |
var Synchronizer = require("synchronizer").Synchronizer; |
var Utils = require("utils").Utils; |
var parseFilters = require("filterValidation").parseFilters; |
var composeFilters = require("filterComposer").composeFilters; |
var updateIcon = require("icon").updateIcon; |
var initNotifications = require("notificationHelper").initNotifications; |
+var showNextNotificationForUrl = require("notificationHelper").showNextNotificationForUrl; |
var seenDataCorruption = false; |
var filterlistsReinitialized = false; |
function init() |
{ |
var filtersLoaded = false; |
var prefsLoaded = false; |
@@ -429,9 +430,10 @@ ext.onMessage.addListener(function (msg, |
} |
}); |
// update icon when page changes location |
ext.pages.onLoading.addListener(function(page) |
{ |
page.sendMessage({type: "clickhide-deactivate"}); |
refreshIconAndContextMenu(page); |
+ showNextNotificationForUrl(page.url); |
}); |