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

Unified Diff: lib/uninstall.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
« lib/.eslintrc.json ('K') | « lib/tldjs.js ('k') | lib/url.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/uninstall.js
===================================================================
--- a/lib/uninstall.js
+++ b/lib/uninstall.js
@@ -12,21 +12,19 @@
* 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/>.
*/
/** @module uninstall */
-"use strict";
-
-const info = require("info");
-const {Prefs} = require("prefs");
-const {Utils} = require("utils");
+import info from "info";
+import {Prefs} from "prefs";
+import {Utils} from "utils";
function setUninstallURL()
{
let search = [];
for (let key of ["addonName", "addonVersion", "application",
"applicationVersion", "platform", "platformVersion"])
search.push(key + "=" + encodeURIComponent(info[key]));
« lib/.eslintrc.json ('K') | « lib/tldjs.js ('k') | lib/url.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld