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

Unified Diff: lib/uninstall.js

Issue 29336255: Issue 3649 - Truncate notificationDownloadCount (Closed)
Patch Set: Created Feb. 11, 2016, 2:24 p.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 | « no previous file | no next file » | 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 3872e1cde76860e697cb24fb44005e182ddbfeef..8faab512063f2fec4ee047ccb881c88921c731f7 100644
--- a/lib/uninstall.js
+++ b/lib/uninstall.js
@@ -30,6 +30,8 @@ function setUninstallURL()
search.push(key + "=" + encodeURIComponent(info[key]));
let downlCount = Prefs.notificationdata.downloadCount || 0;
+ if (typeof(downlCount) == "number" && downlCount > 3)
Sebastian Noack 2016/02/11 14:31:24 In the downloader module, it's only truncated abov
Sebastian Noack 2016/02/11 14:31:24 Nit: Mind adding a comment that this code is matte
Sebastian Noack 2016/02/11 14:31:24 Nit: typeof is a keyword not a function, so please
kzar 2016/02/11 14:45:20 Done.
kzar 2016/02/11 14:45:20 Done.
kzar 2016/02/11 14:45:20 Acknowledged.
+ downlCount = "4+";
search.push("notificationDownloadCount=" + encodeURIComponent(downlCount));
chrome.runtime.setUninstallURL(Utils.getDocLink("uninstalled") + "&" +
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld