OLD | NEW |
1 var backgroundPage = chrome.extension.getBackgroundPage(); | 1 var backgroundPage = ext.backgroundPage.getWindow(); |
2 var require = backgroundPage.require; | 2 var require = backgroundPage.require; |
3 | 3 |
| 4 var Services = backgroundPage.Services; |
4 var Synchronizer = require("synchronizer").Synchronizer; | 5 var Synchronizer = require("synchronizer").Synchronizer; |
5 var Utils = require("utils").Utils; | 6 var Utils = require("utils").Utils; |
6 var Prefs = require("prefs").Prefs; | 7 var Prefs = require("prefs").Prefs; |
7 var FilterStorage = require("filterStorage").FilterStorage; | 8 var FilterStorage = require("filterStorage").FilterStorage; |
8 var FilterNotifier = require("filterNotifier").FilterNotifier; | 9 var FilterNotifier = require("filterNotifier").FilterNotifier; |
9 | 10 |
10 var subscriptionClasses = require("subscriptionClasses"); | 11 var subscriptionClasses = require("subscriptionClasses"); |
11 var Subscription = subscriptionClasses.Subscription; | 12 var Subscription = subscriptionClasses.Subscription; |
12 var DownloadableSubscription = subscriptionClasses.DownloadableSubscription; | 13 var DownloadableSubscription = subscriptionClasses.DownloadableSubscription; |
13 var filterClasses = require("filterClasses"); | 14 var filterClasses = require("filterClasses"); |
14 var Filter = filterClasses.Filter; | 15 var Filter = filterClasses.Filter; |
15 var BlockingFilter = filterClasses.BlockingFilter; | 16 var BlockingFilter = filterClasses.BlockingFilter; |
16 var defaultMatcher = require("matcher").defaultMatcher; | 17 var defaultMatcher = require("matcher").defaultMatcher; |
17 | 18 |
18 /** | 19 /** |
19 * Shortcut for document.getElementById(id) | 20 * Shortcut for document.getElementById(id) |
20 */ | 21 */ |
21 function E(id) | 22 function E(id) |
22 { | 23 { |
23 return document.getElementById(id); | 24 return document.getElementById(id); |
24 } | 25 } |
OLD | NEW |