mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 03:31:52 +00:00
fix entity debugger reaching HTML elements (#1353)
This commit is contained in:
parent
8dcb5faf5f
commit
431453f1a2
@ -94,11 +94,12 @@ export class HUDEntityDebugger extends BaseHUDPart {
|
|||||||
<div>`;
|
<div>`;
|
||||||
|
|
||||||
for (const property in val) {
|
for (const property in val) {
|
||||||
const isRoot = val[property] == this.root;
|
let hiddenValue = null;
|
||||||
const isRecursive = recursion.includes(val[property]);
|
if (val[property] == this.root) {
|
||||||
|
hiddenValue = "<root>";
|
||||||
let hiddenValue = isRoot ? "<root>" : null;
|
} else if (val[property] instanceof Node) {
|
||||||
if (isRecursive) {
|
hiddenValue = `<${val[property].constructor.name}>`;
|
||||||
|
} else if (recursion.includes(val[property])) {
|
||||||
// Avoid recursion by not "expanding" object more than once
|
// Avoid recursion by not "expanding" object more than once
|
||||||
hiddenValue = "<recursion>";
|
hiddenValue = "<recursion>";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user