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

Unified Diff: lib/uninstall.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Patch Set: Addressed some more feedback Created Jan. 18, 2017, 11:44 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
« no previous file with comments | « 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
diff --git a/lib/uninstall.js b/lib/uninstall.js
index 0c2ad71c82b728239558c2bdae7ccc9a143d9923..cc83bac7589fc70bc0542d82da9b9ab6a05b4124 100644
--- a/lib/uninstall.js
+++ b/lib/uninstall.js
@@ -17,16 +17,17 @@
/** @module uninstall */
-let info = require("info");
-let {Prefs} = require("prefs");
-let {Utils} = require("utils");
+"use strict";
+
+const info = require("info");
+const {Prefs} = require("prefs");
+const {Utils} = require("utils");
function setUninstallURL()
{
let search = [];
- let keys = ["addonName", "addonVersion", "application", "applicationVersion",
- "platform", "platformVersion"];
- for (let key of keys)
+ for (let key of ["addonName", "addonVersion", "application",
+ "applicationVersion", "platform", "platformVersion"])
search.push(key + "=" + encodeURIComponent(info[key]));
let downlCount = Prefs.notificationdata.downloadCount || 0;
« no previous file with comments | « lib/tldjs.js ('k') | lib/url.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld