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

Unified Diff: options.js

Issue 6528746257383424: Issue 1708 - Integrate first-run page changes in Chrome/Opera/Safari (Closed)
Patch Set: Rebased Created Dec. 19, 2014, 8:09 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 | « metadata.common ('k') | safari/ext/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: options.js
===================================================================
--- a/options.js
+++ b/options.js
@@ -84,24 +84,18 @@ function loadOptions()
// Show user's filters
reloadFilters();
}
$(loadOptions);
function onMessage(msg)
{
- switch (msg.type)
- {
- case "add-subscription":
- startSubscriptionSelection(msg.title, msg.url);
- break;
- default:
- console.log("got unexpected message: " + msg.type);
- }
+ if (msg.type == "add-subscription")
+ startSubscriptionSelection(msg.title, msg.url);
};
// Reloads the displayed subscriptions and filters
function reloadFilters()
{
// Load user filter URLs
var container = document.getElementById("filterLists");
while (container.lastChild)
« no previous file with comments | « metadata.common ('k') | safari/ext/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld