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

Unified Diff: messageResponder.js

Issue 6141186662203392: Issue 1814 - Use ext.showOptions() on the first-run page (Closed)
Patch Set: Created Jan. 15, 2015, 12:57 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 | « ext/background.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: messageResponder.js
===================================================================
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -115,22 +115,17 @@
isRTL: Utils.chromeRegistry.isLocaleRTL("adblockplus")
});
}
else
callback(null);
break;
case "app.open":
if (message.what == "options")
- {
- if (typeof global.openOptions == "function")
- global.openOptions();
- else
- require("ui").UI.openFiltersDialog();
- }
+ ext.showOptions();
break;
case "subscriptions.get":
var subscriptions = FilterStorage.subscriptions.filter(function(s)
{
if (message.ignoreDisabled && s.disabled)
return false;
if (s instanceof DownloadableSubscription && message.downloadable)
return true;
« no previous file with comments | « ext/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld