Index: utils.js |
diff --git a/utils.js b/utils.js |
index 64b7274494c869713ebf1b051036859f5677823f..1a17f4e7bf072ba3f5751d7516b04545aa653bbd 100644 |
--- a/utils.js |
+++ b/utils.js |
@@ -1,20 +1,18 @@ |
-var backgroundPage = ext.backgroundPage.getWindow(); |
-var require = backgroundPage.require; |
+"use strict"; |
-var Services = backgroundPage.Services; |
-var Synchronizer = require("synchronizer").Synchronizer; |
-var Utils = require("utils").Utils; |
-var Prefs = require("prefs").Prefs; |
-var FilterStorage = require("filterStorage").FilterStorage; |
-var FilterNotifier = require("filterNotifier").FilterNotifier; |
+let backgroundPage = ext.backgroundPage.getWindow(); |
+let require = backgroundPage.require; |
-var subscriptionClasses = require("subscriptionClasses"); |
-var Subscription = subscriptionClasses.Subscription; |
-var DownloadableSubscription = subscriptionClasses.DownloadableSubscription; |
-var filterClasses = require("filterClasses"); |
-var Filter = filterClasses.Filter; |
-var BlockingFilter = filterClasses.BlockingFilter; |
-var defaultMatcher = require("matcher").defaultMatcher; |
+let Services = backgroundPage.Services; |
+let {Synchronizer} = require("synchronizer"); |
+let {Utils} = require("utils"); |
+let {Prefs} = require("prefs"); |
+let {FilterStorage} = require("filterStorage"); |
+let {FilterNotifier} = require("filterNotifier"); |
+ |
+let {Subscription, DownloadableSubscription} = require("subscriptionClasses"); |
+let {Filter, BlockingFilter} = require("filterClasses"); |
+let {defaultMatcher} = require("matcher"); |
/** |
* Shortcut for document.getElementById(id) |