Index: lib/filterListener.js |
=================================================================== |
--- a/lib/filterListener.js |
+++ b/lib/filterListener.js |
@@ -20,24 +20,24 @@ |
/** |
* @fileOverview Component synchronizing filter storage with Matcher |
* instances and ElemHide. |
*/ |
const {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); |
const {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); |
-const {FilterStorage} = require("./filterStorage"); |
-const {FilterNotifier} = require("./filterNotifier"); |
-const {ElemHide} = require("./elemHide"); |
-const {ElemHideEmulation} = require("./elemHideEmulation"); |
-const {defaultMatcher} = require("./matcher"); |
-const {ActiveFilter, RegExpFilter, |
- ElemHideBase, ElemHideEmulationFilter} = require("./filterClasses"); |
-const {Prefs} = require("prefs"); |
+import {FilterStorage} from "./filterStorage"; |
+import {FilterNotifier} from "./filterNotifier"; |
+import {ElemHide} from "./elemHide"; |
+import {ElemHideEmulation} from "./elemHideEmulation"; |
+import {defaultMatcher} from "./matcher"; |
+import {ActiveFilter, RegExpFilter, |
+ ElemHideBase, ElemHideEmulationFilter} from "./filterClasses"; |
+import {Prefs} from "prefs"; |
/** |
* Increases on filter changes, filters will be saved if it exceeds 1. |
* @type {number} |
*/ |
let isDirty = 0; |
/** |