Index: lib/api.js |
diff --git a/lib/api.js b/lib/api.js |
index b294274d51ce5053485fa0eddd109e51d50cb802..b432b276b744161d5f6bc1ae1445810c45fff4fa 100644 |
--- a/lib/api.js |
+++ b/lib/api.js |
@@ -26,6 +26,7 @@ var API = (function() |
var Synchronizer = require("synchronizer").Synchronizer; |
var Prefs = require("prefs").Prefs; |
var checkForUpdates = require("updater").checkForUpdates; |
+ var Notification = require("notification").Notification; |
return { |
getFilterFromText: function(text) |
@@ -136,6 +137,30 @@ var API = (function() |
return result; |
}, |
+ getNextNotificationToShow: function(url) |
+ { |
+ return Notification.getNextToShow(url); |
+ }, |
+ |
+ getNotificationTexts: function(notification, locale) |
+ { |
+ return Notification.getLocalizedTexts(notification, locale); |
+ }, |
+ |
+ addNotification: function(notification) |
+ { |
+ return Notification.addNotification(notification); |
+ }, |
+ |
+ removeNotification: function(notification) |
+ { |
+ return Notification.removeNotification(notification); |
+ }, |
+ |
+ markNotificationAsShown: function(id) |
+ { |
+ Notification.markAsShown(id); |
+ }, |
checkFilterMatch: function(url, contentType, documentUrl) |
{ |
var requestHost = extractHostFromURL(url); |