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

Unified Diff: lib/uninstall.js

Issue 29338534: Issue 3826 - Filter preference change events (Closed)
Patch Set: Rebased and fixed a typo Created March 19, 2016, 7:48 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 | « lib/stats.js ('k') | metadata.common » ('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
@@ -57,9 +57,5 @@
if ("setUninstallURL" in chrome.runtime)
{
Prefs.untilLoaded.then(setUninstallURL);
- Prefs.onChanged.addListener(function(name)
- {
- if (name == "notificationdata")
- setUninstallURL();
- });
+ Prefs.on("notificationdata", setUninstallURL);
}
« no previous file with comments | « lib/stats.js ('k') | metadata.common » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld