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

Side by Side Diff: lib/adblockplus.js

Issue 29358499: Issue 4550 - ABP / edge loses the custom filters / lists (Closed)
Patch Set: Created Oct. 21, 2016, 1:20 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-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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 function onLoaded(entry) 407 function onLoaded(entry)
408 { 408 {
409 if ("content" in entry) 409 if ("content" in entry)
410 { 410 {
411 for (var _loopIndex15 = 0; _loopIndex15 < entry.content.length; ++_loo pIndex15) 411 for (var _loopIndex15 = 0; _loopIndex15 < entry.content.length; ++_loo pIndex15)
412 { 412 {
413 var line = entry.content[_loopIndex15]; 413 var line = entry.content[_loopIndex15];
414 listener.process(line); 414 listener.process(line);
415 } 415 }
416 } 416 }
417 listener.process(null);
417 callback(null); 418 callback(null);
418 } 419 }
419 loadFile(file, onLoaded, callback); 420 loadFile(file, onLoaded, callback);
420 }, 421 },
421 writeToFile: function(file, data, callback) 422 writeToFile: function(file, data, callback)
422 { 423 {
423 saveFile(file, data, callback); 424 saveFile(file, data, callback);
424 }, 425 },
425 copyFile: function(fromFile, toFile, callback) 426 copyFile: function(fromFile, toFile, callback)
426 { 427 {
(...skipping 6130 matching lines...) Expand 10 before | Expand all | Expand 10 after
6557 search.push("notificationDownloadCount=" + encodeURIComponent(downlCount)); 6558 search.push("notificationDownloadCount=" + encodeURIComponent(downlCount));
6558 chrome.runtime.setUninstallURL(Utils.getDocLink("uninstalled") + "&" + searc h.join("&")); 6559 chrome.runtime.setUninstallURL(Utils.getDocLink("uninstalled") + "&" + searc h.join("&"));
6559 } 6560 }
6560 if ("setUninstallURL" in chrome.runtime) 6561 if ("setUninstallURL" in chrome.runtime)
6561 { 6562 {
6562 Prefs.untilLoaded.then(setUninstallURL); 6563 Prefs.untilLoaded.then(setUninstallURL);
6563 Prefs.on("notificationdata", setUninstallURL); 6564 Prefs.on("notificationdata", setUninstallURL);
6564 } 6565 }
6565 return exports; 6566 return exports;
6566 })(); 6567 })();
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