| 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) |