1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 00:15:46 +01:00

Access the console service via the services cache in liberator.log.

This commit is contained in:
Doug Kearns
2009-01-05 21:53:55 +11:00
parent 698cdb19c2
commit e004668572
2 changed files with 1 additions and 3 deletions

View File

@@ -1056,8 +1056,7 @@ const liberator = (function () //{{{
if (typeof msg == "object")
msg = util.objectToString(msg, false);
const consoleService = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService);
consoleService.logStringMessage(config.name.toLowerCase() + ": " + msg);
services.get("console").logStringMessage(config.name.toLowerCase() + ": " + msg);
},
/**

View File

@@ -252,7 +252,6 @@ function Styles(name, store, serial)
const util = modules.util;
const sleep = liberator.sleep;
const storage = modules.storage;
const consoleService = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService);
const ios = services.get("io");
const sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService);
const namespace = '@namespace html "' + XHTML + '";\n' +