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

Unified Diff: lib/api.js

Issue 29317074: Issue 2693 - Update adblockplus dependency (Closed)
Patch Set: Created June 18, 2015, 3:31 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 | « include/AdblockPlus/FilterEngine.h ('k') | lib/prefs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/api.js
diff --git a/lib/api.js b/lib/api.js
index 03f135cd69a00513cd86162b0e4d521e83083814..840eefe10d5146cfbc89ab29207175c6eff8031c 100644
--- a/lib/api.js
+++ b/lib/api.js
@@ -28,6 +28,11 @@ var API = (function()
var checkForUpdates = require("updater").checkForUpdates;
var Notification = require("notification").Notification;
+ Notification.addShowListener(function (notification)
+ {
+ _triggerEvent("notificationAvailable", notification);
+ });
+
return {
getFilterFromText: function(text)
{
@@ -137,9 +142,9 @@ var API = (function()
return result;
},
- getNextNotificationToShow: function(url)
+ showNextNotification: function(url)
{
- return Notification.getNextToShow(url);
+ Notification.showNext(url);
},
getNotificationTexts: function(notification)
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | lib/prefs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld