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