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: Define and destructure backgroundPage more consistently, fix minor whitespace errors Created Jan. 18, 2017, 7:34 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/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;

Powered by Google App Engine
This is Rietveld