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: fix js event name Created June 22, 2015, 10:11 a.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
Index: lib/api.js
diff --git a/lib/api.js b/lib/api.js
index 03f135cd69a00513cd86162b0e4d521e83083814..2bf186ce0847b47ac1168533ad96c704fbbdbeb7 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)
Felix Dahlke 2015/06/25 18:35:48 How about moving this, in the spirit of filterUpda
sergei 2015/06/26 14:21:17 Done.
+ {
+ _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)

Powered by Google App Engine
This is Rietveld