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

Side by Side Diff: background.js

Issue 29322488: Issue 2376 - mockup causing error (Closed)
Patch Set: Created July 15, 2015, 5:26 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 | no next file » | no next file with comments »
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-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 if (params.filterError) 170 if (params.filterError)
171 return {error: "Invalid filter"}; 171 return {error: "Invalid filter"};
172 return {filter: modules.filterClasses.Filter.fromText(text)}; 172 return {filter: modules.filterClasses.Filter.fromText(text)};
173 }, 173 },
174 parseFilters: function(text) 174 parseFilters: function(text)
175 { 175 {
176 if (params.filterError) 176 if (params.filterError)
177 return {errors: ["Invalid filter"]}; 177 return {errors: ["Invalid filter"]};
178 return {filters: 178 return {filters:
179 text.split("\n").map(modules.filterClasses.Filter.fromText)}; 179 text.split("\n").map(modules.filterClasses.Filter.fromText), error s: []};
Thomas Greiner 2015/07/15 17:52:50 Again, mind the 80 characters limit. I'd suggest u
saroyanm 2015/07/15 17:56:57 Done.
180 } 180 }
181 }; 181 };
182 182
183 modules.synchronizer = { 183 modules.synchronizer = {
184 Synchronizer: {} 184 Synchronizer: {}
185 }; 185 };
186 186
187 modules.matcher = { 187 modules.matcher = {
188 defaultMatcher: { 188 defaultMatcher: {
189 matchesAny: function(url, requestType, docDomain, thirdParty) 189 matchesAny: function(url, requestType, docDomain, thirdParty)
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 type: "message", 290 type: "message",
291 payload: { 291 payload: {
292 title: "Custom subscription", 292 title: "Custom subscription",
293 url: "http://example.com/custom.txt", 293 url: "http://example.com/custom.txt",
294 type: "add-subscription" 294 type: "add-subscription"
295 } 295 }
296 }, "*"); 296 }, "*");
297 }, 1000); 297 }, 1000);
298 } 298 }
299 })(this); 299 })(this);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld