Index: lib/filterStorage.js |
=================================================================== |
--- a/lib/filterStorage.js |
+++ b/lib/filterStorage.js |
@@ -17,36 +17,35 @@ |
"use strict"; |
/** |
* @fileOverview FilterStorage class responsible for managing user's |
* subscriptions and filters. |
*/ |
-const {IO} = require("io"); |
-const {Prefs} = require("prefs"); |
-const {Filter, ActiveFilter} = require("./filterClasses"); |
-const {Subscription, SpecialSubscription, |
- ExternalSubscription} = require("./subscriptionClasses"); |
-const {FilterNotifier} = require("./filterNotifier"); |
+import {IO} from "io"; |
+import {Prefs} from "prefs"; |
+import {Filter, ActiveFilter} from "./filterClasses"; |
+import {Subscription, SpecialSubscription, |
+ ExternalSubscription} from "./subscriptionClasses"; |
+import {FilterNotifier} from "./filterNotifier"; |
/** |
* Version number of the filter storage file format. |
* @type {number} |
*/ |
let formatVersion = 5; |
/** |
* This class reads user's filters from disk, manages them in memory |
* and writes them back. |
* @class |
*/ |
-let FilterStorage = exports.FilterStorage = |
-{ |
+export let FilterStorage = { |
/** |
* Will be set to true after the initial loadFromDisk() call completes. |
* @type {boolean} |
*/ |
initialized: false, |
/** |
* Version number of the patterns.ini format used. |