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: Created March 17, 2016, 4:30 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
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);
}

Powered by Google App Engine
This is Rietveld