| Index: background.js |
| =================================================================== |
| --- a/background.js |
| +++ b/background.js |
| @@ -55,6 +55,7 @@ |
| var NotificationStorage = require("notification").Notification; |
| var initAntiAdblockNotification = require("antiadblockInit").initAntiAdblockNotification; |
| var parseFilters = require("filterValidation").parseFilters; |
| +var composeFilters = require("filterComposer").composeFilters; |
| // Chrome on Linux does not fully support chrome.notifications until version 35 |
| // https://code.google.com/p/chromium/issues/detail?id=291485 |
| @@ -551,6 +552,12 @@ |
| htmlPages.set(sender.page, null); |
| refreshIconAndContextMenu(sender.page); |
| break; |
| + case "compose-filters": |
| + sendResponse(composeFilters( |
| + msg.tagName, msg.id, msg.src, msg.style, |
| + msg.classes, msg.urls, new URL(msg.baseURL) |
| + )); |
| + break; |
| case "forward": |
| if (sender.page) |
| { |