aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/log.html
diff options
context:
space:
mode:
authorEinar Egilsson2009-10-16 07:23:54 +0000
committerEinar Egilsson2009-10-16 07:23:54 +0000
commit6177295e1d9a9ebba5acc68df4800d8557b22cab (patch)
tree66a670cd5f54f6ee06d2ecb06c7751cee4463e85 /chrome/content/log.html
parent9266c7831e5e4d0f4e123bd62e6cc0a2d114038f (diff)
Before using XPCOMUtils
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@269 119bf307-c92d-0410-89bd-8f53e6181181
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) {}
+ }
}
}
};