Index: lib/firefoxDataCleanup.js |
=================================================================== |
--- a/lib/firefoxDataCleanup.js |
+++ b/lib/firefoxDataCleanup.js |
@@ -10,24 +10,22 @@ |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* GNU General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
-"use strict"; |
- |
-const {Filter, ActiveFilter} = require("filterClasses"); |
-const {FilterNotifier} = require("filterNotifier"); |
-const {FilterStorage} = require("filterStorage"); |
-const {IO} = require("io"); |
-const {Prefs} = require("prefs"); |
-const {SpecialSubscription} = require("subscriptionClasses"); |
+import {Filter, ActiveFilter} from "filterClasses"; |
+import {FilterNotifier} from "filterNotifier"; |
+import {FilterStorage} from "filterStorage"; |
+import {IO} from "io"; |
+import {Prefs} from "prefs"; |
+import {SpecialSubscription} from "subscriptionClasses"; |
Promise.all([FilterNotifier.once("load"), Prefs.untilLoaded]).then(() => |
{ |
if (Prefs.data_cleanup_done) |
return; |
if (FilterStorage.firstRun) |
{ |