diff options
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 |