| Index: firstRun.js |
| =================================================================== |
| --- a/firstRun.js |
| +++ b/firstRun.js |
| @@ -14,16 +14,21 @@ |
| * You should have received a copy of the GNU General Public License |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| "use strict"; |
| (function() |
| { |
| + function E(id) |
| + { |
| + return document.getElementById(id); |
| + } |
| + |
| // Load subscriptions for features |
| var featureSubscriptions = [ |
| { |
| feature: "malware", |
| homepage: "http://malwaredomains.com/", |
| title: "Malware Domains", |
| url: "https://easylist-downloads.adblockplus.org/malwaredomains_full.txt" |
| }, |
| @@ -109,17 +114,17 @@ |
| if (message.type == "subscriptions.listen") |
| { |
| updateToggleButtons(); |
| updateSocialLinks(); |
| } |
| }); |
| ext.backgroundPage.sendMessage({ |
| type: "subscriptions.listen", |
| - filter: ["added", "removed", "disabled"] |
| + filter: ["added", "removed", "updated", "disabled"] |
| }); |
| } |
| function initToggleSubscriptionButton(featureSubscription) |
| { |
| var feature = featureSubscription.feature; |
| var element = E("toggle-" + feature); |