diff options
author | Einar Egilsson | 2009-10-07 11:24:44 +0000 |
---|---|---|
committer | Einar Egilsson | 2009-10-07 11:24:44 +0000 |
commit | a703799580a208beac24c827fcd54b799f46a3d7 (patch) | |
tree | 5dc5b71933534189abee7bd4c40f26fbaa0c125d /chrome/content/log.html | |
parent | 96966ca83f96ed1babcd2bd23aa68feb63fbb7a7 (diff) |
Finally working normally again after massive refactoring.
Disabling single redirects works but needs more GUI work.
Added Redirector log file since the Error Console keeps deleting our messages.
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@253 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/log.html')
-rw-r--r-- | chrome/content/log.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/chrome/content/log.html b/chrome/content/log.html new file mode 100644 index 0000000..64ff726 --- /dev/null +++ b/chrome/content/log.html @@ -0,0 +1,29 @@ +<html>
+ <head>
+ <title>Redirector Log Message Listener
+ <style type="text/css">
+ body { font-family:Arial, sans-serif; }
+ </style>
+ </head>
+ <body onunload="unload();" onload="load();">
+ <script>
+ var listener = {
+ observe : function(msg) {
+ var prefix = 'REDIRECTOR:';
+ if (msg.message.substr(0, prefix.length) == prefix)
+ {
+ document.body.innerHTML += msg.message.substr(prefix.length) + '<br>';
+ }
+ }
+ };
+ var consoleService = Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService);
+
+ function load() {
+ consoleService.registerListener(listener);
+ }
+ function unload() {
+ consoleService.unregisterListener(listener);
+ }
+ </script>
+ </body>
+</html>
\ No newline at end of file |