mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 22:52:38 +01:00
The dump part of the last commit, which didnt make it in
This commit is contained in:
@@ -652,6 +652,10 @@ const liberator = (function () //{{{
|
|||||||
// NOTE: "browser.dom.window.dump.enabled" preference needs to be set
|
// NOTE: "browser.dom.window.dump.enabled" preference needs to be set
|
||||||
dump: function (message)
|
dump: function (message)
|
||||||
{
|
{
|
||||||
|
if (typeof message == "object")
|
||||||
|
message = liberator.util.objectToString(message);
|
||||||
|
else
|
||||||
|
message += "\n";
|
||||||
dump(liberator.config.name.toLowerCase() + ": " + message);
|
dump(liberator.config.name.toLowerCase() + ": " + message);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user