LEFT | RIGHT |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
3 * Copyright (C) 2006-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 */ | 16 */ |
17 | 17 |
18 (function(global) | 18 (function(global) |
19 { | 19 { |
20 if (typeof ext == "undefined") | 20 if (!global.ext) |
21 global.ext = require("ext_background"); | 21 global.ext = require("ext_background"); |
22 | 22 |
23 var Utils = require("utils").Utils; | 23 var Utils = require("utils").Utils; |
24 var FilterStorage = require("filterStorage").FilterStorage; | 24 var FilterStorage = require("filterStorage").FilterStorage; |
25 var FilterNotifier = require("filterNotifier").FilterNotifier; | 25 var FilterNotifier = require("filterNotifier").FilterNotifier; |
26 var defaultMatcher = require("matcher").defaultMatcher; | 26 var defaultMatcher = require("matcher").defaultMatcher; |
27 var BlockingFilter = require("filterClasses").BlockingFilter; | 27 var BlockingFilter = require("filterClasses").BlockingFilter; |
28 var Synchronizer = require("synchronizer").Synchronizer; | 28 var Synchronizer = require("synchronizer").Synchronizer; |
29 | 29 |
30 var subscriptionClasses = require("subscriptionClasses"); | 30 var subscriptionClasses = require("subscriptionClasses"); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 173 } |
174 | 174 |
175 if (message.filter) | 175 if (message.filter) |
176 filters.subscription = message.filter; | 176 filters.subscription = message.filter; |
177 else | 177 else |
178 delete filters.subscription; | 178 delete filters.subscription; |
179 break; | 179 break; |
180 } | 180 } |
181 }); | 181 }); |
182 })(this); | 182 })(this); |
LEFT | RIGHT |