Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/notificationShowRegistration.js

Issue 29317074: Issue 2693 - Update adblockplus dependency (Closed)
Patch Set: rebase Created July 2, 2015, 1:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/api.js ('k') | lib/prefs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/notificationShowRegistration.js
diff --git a/lib/filterUpdateRegistration.js b/lib/notificationShowRegistration.js
similarity index 82%
copy from lib/filterUpdateRegistration.js
copy to lib/notificationShowRegistration.js
index 3e4bb66d951b9cb44dd219b47b60d2bc9ac71420..a7928dff345d2021ccef62dc9b8075958a68fbd8 100644
--- a/lib/filterUpdateRegistration.js
+++ b/lib/notificationShowRegistration.js
@@ -15,9 +15,9 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-let {FilterNotifier} = require("filterNotifier");
+let {Notification} = require("notification");
-FilterNotifier.addListener(function(action, item)
+Notification.addShowListener(function(notification)
{
- _triggerEvent("filterChange", action, item);
+ _triggerEvent("_showNotification", notification);
});
« no previous file with comments | « lib/api.js ('k') | lib/prefs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld