Index: chrome/content/frameScript.js |
=================================================================== |
--- a/chrome/content/frameScript.js |
+++ b/chrome/content/frameScript.js |
@@ -14,17 +14,25 @@ |
addMessageListener("ElemHideHelper:Shutdown", onShutdown); |
addMessageListener("ElemHideHelper:GetNodeInfo", onGetNodeInfo); |
addMessageListener("ElemHideHelper:Preview", onTogglePreview); |
function onShutdown() |
{ |
shutdown(); |
- Cu.unload(module); |
+ try |
+ { |
+ Cu.unload(module); |
+ } |
+ catch (e) |
+ { |
+ Cu.reportError(e); |
+ } |
+ |
removeMessageListener("ElemHideHelper:Shutdown", onShutdown); |
removeMessageListener("ElemHideHelper:GetNodeInfo", onGetNodeInfo); |
removeMessageListener("ElemHideHelper:Preview", onTogglePreview); |
} |
function onGetNodeInfo(message) |
{ |
let nodeInfo = getNodeInfo(message.objects.element); |