| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 { | 142 { |
| 143 htmlPages.set(sender.page, null); | 143 htmlPages.set(sender.page, null); |
| 144 refreshIconAndContextMenu(sender.page); | 144 refreshIconAndContextMenu(sender.page); |
| 145 }); | 145 }); |
| 146 | 146 |
| 147 port.on("composer.openDialog", (message, sender) => | 147 port.on("composer.openDialog", (message, sender) => |
| 148 { | 148 { |
| 149 return new Promise(resolve => | 149 return new Promise(resolve => |
| 150 { | 150 { |
| 151 ext.windows.create({ | 151 ext.windows.create({ |
| 152 url: ext.getURL("block.html"), | 152 url: ext.getURL("composer.html"), |
| 153 left: 50, | 153 left: 50, |
| 154 top: 50, | 154 top: 50, |
| 155 width: 420, | 155 width: 420, |
| 156 height: 200, | 156 height: 200, |
| 157 focused: true, | 157 focused: true, |
| 158 type: "popup" | 158 type: "popup" |
| 159 }, | 159 }, |
| 160 popupPage => | 160 popupPage => |
| 161 { | 161 { |
| 162 let popupPageId = popupPage.id; | 162 let popupPageId = popupPage.id; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 185 src: message.src, | 185 src: message.src, |
| 186 style: message.style, | 186 style: message.style, |
| 187 classes: message.classes, | 187 classes: message.classes, |
| 188 urls: message.urls, | 188 urls: message.urls, |
| 189 type: message.mediatype, | 189 type: message.mediatype, |
| 190 baseURL: message.baseURL, | 190 baseURL: message.baseURL, |
| 191 page: sender.page, | 191 page: sender.page, |
| 192 frame: sender.frame | 192 frame: sender.frame |
| 193 }); | 193 }); |
| 194 }); | 194 }); |
| OLD | NEW |