Left: | ||
Right: |
OLD | NEW |
---|---|
1 var backgroundPage = ext.backgroundPage.getWindow(); | 1 "use strict"; |
2 var require = backgroundPage.require; | |
3 | 2 |
4 var Services = backgroundPage.Services; | 3 const backgroundPage = ext.backgroundPage.getWindow(); |
5 var Synchronizer = require("synchronizer").Synchronizer; | 4 const {require, Services} = backgroundPage; |
Sebastian Noack
2017/01/18 11:24:30
Note that backgroundPage isn't used anywhere else,
kzar
2017/01/18 11:46:41
Done.
| |
6 var Utils = require("utils").Utils; | |
7 var Prefs = require("prefs").Prefs; | |
8 var FilterStorage = require("filterStorage").FilterStorage; | |
9 var FilterNotifier = require("filterNotifier").FilterNotifier; | |
10 | 5 |
11 var subscriptionClasses = require("subscriptionClasses"); | 6 const {Synchronizer} = require("synchronizer"); |
12 var Subscription = subscriptionClasses.Subscription; | 7 const {Utils} = require("utils"); |
13 var DownloadableSubscription = subscriptionClasses.DownloadableSubscription; | 8 const {Prefs} = require("prefs"); |
14 var filterClasses = require("filterClasses"); | 9 const {FilterStorage} = require("filterStorage"); |
15 var Filter = filterClasses.Filter; | 10 const {FilterNotifier} = require("filterNotifier"); |
16 var BlockingFilter = filterClasses.BlockingFilter; | 11 |
17 var defaultMatcher = require("matcher").defaultMatcher; | 12 const {Subscription, DownloadableSubscription} = require("subscriptionClasses"); |
13 const {Filter, BlockingFilter} = require("filterClasses"); | |
14 const {defaultMatcher} = require("matcher"); | |
18 | 15 |
19 /** | 16 /** |
20 * Shortcut for document.getElementById(id) | 17 * Shortcut for document.getElementById(id) |
21 */ | 18 */ |
22 function E(id) | 19 function E(id) |
23 { | 20 { |
24 return document.getElementById(id); | 21 return document.getElementById(id); |
25 } | 22 } |
OLD | NEW |