| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 })(); |
| OLD | NEW |