Index: composer.postload.js |
=================================================================== |
--- a/composer.postload.js |
+++ b/composer.postload.js |
@@ -388,26 +388,20 @@ function elementPicked(event) |
let element = currentElement.prisoner || currentElement; |
getFiltersForElement(element, (filters, selectors) => |
{ |
if (currentlyPickingElement) |
stopPickingElement(); |
browser.runtime.sendMessage({ |
- type: "composer.openDialog" |
- }, |
- popupId => |
+ type: "composer.openDialog", |
+ filters |
+ }, popupId => |
{ |
- browser.runtime.sendMessage({ |
- type: "forward", |
- targetPageId: popupId, |
- payload: {type: "composer.dialog.init", filters} |
- }); |
- |
// Only the top frame keeps a record of the popup window's ID, |
// so if this isn't the top frame we need to pass the ID on. |
if (window == window.top) |
{ |
blockelementPopupId = popupId; |
} |
else |
{ |