Index: chrome/content/frameScript.js |
=================================================================== |
--- a/chrome/content/frameScript.js |
+++ b/chrome/content/frameScript.js |
@@ -23,17 +23,18 @@ |
removeMessageListener("ElemHideHelper:Shutdown", onShutdown); |
removeMessageListener("ElemHideHelper:GetNodeInfo", onGetNodeInfo); |
removeMessageListener("ElemHideHelper:Preview", onTogglePreview); |
} |
function onGetNodeInfo(message) |
{ |
let nodeInfo = getNodeInfo(message.objects.element); |
- message.objects.callback(JSON.stringify(nodeInfo)); |
+ nodeInfo.messageId = message.data; |
+ sendAsyncMessage("ElemHideHelper:GetNodeInfo:Response", nodeInfo); |
} |
function onTogglePreview(message) |
{ |
togglePreview(message.data.nodeID, message.data.stylesheetData); |
if (message.data.forgetNode) |
forgetNode(message.data.nodeID); |
} |