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: Fixed some issues Created March 23, 2016, 11:32 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/events.js ('K') | « 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);
}
« lib/events.js ('K') | « lib/stats.js ('k') | metadata.common » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld