mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 07:27:58 +01:00
Improve objectToString a bit
This commit is contained in:
@@ -305,6 +305,7 @@ const util = { //{{{
|
||||
{
|
||||
obj = "[Object]";
|
||||
}
|
||||
obj = template.highlightFilter(util.clip(obj, 150), "\n", !color ? function () "^J" : function () <span class="hl-NonText">^J</span>);
|
||||
let string = <><span class="hl-Title hl-Object">{obj}</span>::<br/>
</>;
|
||||
|
||||
let keys = [];
|
||||
@@ -326,7 +327,7 @@ const util = { //{{{
|
||||
else
|
||||
var noVal = true;
|
||||
}
|
||||
value = template.highlight(value, true);
|
||||
value = template.highlight(value, true, 150);
|
||||
// FIXME: Inline style.
|
||||
key = <span style="font-weight: bold;">{i}</span>;
|
||||
if (!isNaN(i))
|
||||
|
||||
Reference in New Issue
Block a user