mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 13:07:57 +01:00
Fix some quirks in new scrolling code.
This commit is contained in:
@@ -1075,10 +1075,13 @@ const liberator = (function () //{{{
|
||||
*
|
||||
* @param {string|Object} msg The message to print.
|
||||
*/
|
||||
dump: function (msg)
|
||||
dump: function ()
|
||||
{
|
||||
if (typeof msg == "object")
|
||||
msg = util.objectToString(msg);
|
||||
let msg = Array.map(arguments, function (msg) {
|
||||
if (typeof msg == "object")
|
||||
msg = util.objectToString(msg);
|
||||
return msg;
|
||||
}).join(", ");
|
||||
msg = String.replace(msg, /\n?$/, "\n");
|
||||
window.dump(msg.replace(/^./gm, ("config" in modules && config.name.toLowerCase()) + ": $&"));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user