mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-05 09:35:45 +01:00
Access the console service via the services cache in liberator.log.
This commit is contained in:
@@ -1056,8 +1056,7 @@ const liberator = (function () //{{{
|
|||||||
if (typeof msg == "object")
|
if (typeof msg == "object")
|
||||||
msg = util.objectToString(msg, false);
|
msg = util.objectToString(msg, false);
|
||||||
|
|
||||||
const consoleService = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService);
|
services.get("console").logStringMessage(config.name.toLowerCase() + ": " + msg);
|
||||||
consoleService.logStringMessage(config.name.toLowerCase() + ": " + msg);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -252,7 +252,6 @@ function Styles(name, store, serial)
|
|||||||
const util = modules.util;
|
const util = modules.util;
|
||||||
const sleep = liberator.sleep;
|
const sleep = liberator.sleep;
|
||||||
const storage = modules.storage;
|
const storage = modules.storage;
|
||||||
const consoleService = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService);
|
|
||||||
const ios = services.get("io");
|
const ios = services.get("io");
|
||||||
const sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService);
|
const sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService);
|
||||||
const namespace = '@namespace html "' + XHTML + '";\n' +
|
const namespace = '@namespace html "' + XHTML + '";\n' +
|
||||||
|
|||||||
Reference in New Issue
Block a user