| Left: | ||
| Right: |
| 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
| 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 require("child/elemHide"); | 18 let {port} = require("messaging"); |
| 19 require("child/contentPolicy"); | 19 |
| 20 require("child/contextMenu"); | 20 // Only initialize after receiving a "response" to a dummy message - this makes |
| 21 require("child/dataCollector"); | 21 // sure that on update the old version has enough time to receive and process |
| 22 require("child/cssProperties"); | 22 // the shutdown message. |
| 23 require("child/subscribeLinks"); | 23 port.emitWithResponse("ping").then(() => |
|
Thomas Greiner
2016/04/20 14:38:35
Where is the code that responds to the "ping" even
Wladimir Palant
2016/04/20 14:41:40
There is none, we don't need a response. Or, if yo
| |
| 24 { | |
| 25 require("child/elemHide"); | |
| 26 require("child/contentPolicy"); | |
| 27 require("child/contextMenu"); | |
| 28 require("child/dataCollector"); | |
| 29 require("child/cssProperties"); | |
| 30 require("child/subscribeLinks"); | |
| 31 }); | |
| OLD | NEW |