mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 16:10:09 +00:00
Add unicorn lint rules - DOM built-in functions (#628)
- Prefer append(), remove(), replaceAll() - Wrap nested ternaries in parenthesis
This commit is contained in:
@@ -231,9 +231,9 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
|
||||
if (LiteGraph.node_box_coloured_when_on) {
|
||||
colState = this.action_triggered
|
||||
? "#FFF"
|
||||
: this.execute_triggered
|
||||
: (this.execute_triggered
|
||||
? "#AAA"
|
||||
: colState
|
||||
: colState)
|
||||
}
|
||||
|
||||
return this.boxcolor || colState || LiteGraph.NODE_DEFAULT_BOXCOLOR
|
||||
|
||||
Reference in New Issue
Block a user