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

Side by Side Diff: background.js

Issue 29339395: Noissue - Make the options page respond to subscription title and homepage changes (Closed)
Patch Set: Addressed comments Created April 6, 2016, 5:25 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | messageResponder.js » ('j') | options.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 categories.splice(index, 1); 131 categories.splice(index, 1);
132 modules.prefs.Prefs.notifications_ignoredcategories = categories; 132 modules.prefs.Prefs.notifications_ignoredcategories = categories;
133 } 133 }
134 } 134 }
135 }; 135 };
136 136
137 modules.subscriptionClasses = { 137 modules.subscriptionClasses = {
138 Subscription: function(url) 138 Subscription: function(url)
139 { 139 {
140 this.url = url; 140 this.url = url;
141 this.title = "Subscription " + url;
142 this._disabled = false; 141 this._disabled = false;
143 this._lastDownload = 1234; 142 this._lastDownload = 1234;
144 this.homepage = "https://easylist.adblockplus.org/"; 143 this.homepage = "https://easylist.adblockplus.org/";
145 this.downloadStatus = params.downloadStatus; 144 this.downloadStatus = params.downloadStatus;
146 }, 145 },
147 146
148 SpecialSubscription: function(url) 147 SpecialSubscription: function(url)
149 { 148 {
150 this.url = url; 149 this.url = url;
151 this.disabled = false; 150 this.disabled = false;
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 480
482 if (params.safariContentBlocker) 481 if (params.safariContentBlocker)
483 { 482 {
484 global.safari = { 483 global.safari = {
485 extension: { 484 extension: {
486 setContentBlocker: function() {} 485 setContentBlocker: function() {}
487 } 486 }
488 }; 487 };
489 } 488 }
490 })(this); 489 })(this);
OLDNEW
« no previous file with comments | « no previous file | messageResponder.js » ('j') | options.js » ('J')

Powered by Google App Engine
This is Rietveld