1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:12:26 +01:00

The dump part of the last commit, which didnt make it in

This commit is contained in:
Kris Maglione
2008-10-07 20:35:17 +00:00
parent 08ac946225
commit ee6ca4bb4a

View File

@@ -652,6 +652,10 @@ const liberator = (function () //{{{
// NOTE: "browser.dom.window.dump.enabled" preference needs to be set
dump: function (message)
{
if (typeof message == "object")
message = liberator.util.objectToString(message);
else
message += "\n";
dump(liberator.config.name.toLowerCase() + ": " + message);
},