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