Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/firefoxDataCleanup.js

Issue 29715577: Issue 6449 - Switch to Harmony modules (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Add lib/.eslintrc.json Created March 6, 2018, 10:30 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
{
« lib/.eslintrc.json ('K') | « lib/filterValidation.js ('k') | lib/icon.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld