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) |