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