Index: chrome/content/frameScript.js |
=================================================================== |
--- a/chrome/content/frameScript.js |
+++ b/chrome/content/frameScript.js |
@@ -14,17 +14,22 @@ |
addMessageListener("ElemHideHelper:Shutdown", onShutdown); |
addMessageListener("ElemHideHelper:GetNodeInfo", onGetNodeInfo); |
addMessageListener("ElemHideHelper:Preview", onTogglePreview); |
function onShutdown() |
{ |
shutdown(); |
- Cu.unload(module); |
+ try { |
+ Cu.unload(module); |
+ } catch (e) { |
saroyanm
2015/12/21 13:45:18
Nit: please move catch to it's own line to make it
Wladimir Palant
2015/12/21 19:01:59
Done.
|
+ Cu.reportError(e); |
+ } |
+ |
removeMessageListener("ElemHideHelper:Shutdown", onShutdown); |
removeMessageListener("ElemHideHelper:GetNodeInfo", onGetNodeInfo); |
removeMessageListener("ElemHideHelper:Preview", onTogglePreview); |
} |
function onGetNodeInfo(message) |
{ |
let nodeInfo = getNodeInfo(message.objects.element); |