aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/log.html
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/content/log.html')
-rw-r--r--chrome/content/log.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/content/log.html b/chrome/content/log.html
index a70d9f4..a4f04d1 100644
--- a/chrome/content/log.html
+++ b/chrome/content/log.html
@@ -13,7 +13,12 @@
var prefix = 'REDIRECTOR:';
if (msg.message.substr(0, prefix.length) == prefix)
{
- document.body.innerHTML += msg.message.substr(prefix.length) + '<br>';
+ if (document) {
+ document.body.innerHTML += msg.message.substr(prefix.length) + '<br>';
+ } else {
+ //Been destroyed and we're still getting message, lets try to unsubscribe...
+ try { unload(); } catch(e) {}
+ }
}
}
};