Index: lib/aardvark.js |
=================================================================== |
--- a/lib/aardvark.js |
+++ b/lib/aardvark.js |
@@ -567,19 +567,29 @@ let Aardvark = exports.Aardvark = |
return false; |
}, |
select: function(elem) |
{ |
if (!elem) |
return false; |
- this.window.openDialog("chrome://elemhidehelper/content/composer.xul", "_blank", |
- "chrome,centerscreen,resizable,dialog=no", elem); |
- this.quit(); |
+ this.browser.selectedBrowser.messageManager.sendAsyncMessage( |
+ "ElemHideHelper:GetNodeInfo", |
+ null, |
+ { |
+ element: elem, |
+ callback: (nodeData, host) => |
+ { |
+ this.window.openDialog("chrome://elemhidehelper/content/composer.xul", "_blank", |
+ "chrome,centerscreen,resizable,dialog=no", nodeData, host); |
+ this.quit(); |
+ } |
+ } |
+ ); |
return false; |
}, |
blinkElement: function(elem) |
{ |
if (!elem) |
return false; |