mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-21 13:12:13 -03:00
Update appearance.js
This commit is contained in:
committed by
GitHub
parent
aba6cd0e6c
commit
97f3c47885
@@ -77,9 +77,9 @@ const ext = {
|
||||
name: "efficiency.appearance",
|
||||
|
||||
nodeCreated(node) {
|
||||
const title = node.getTitle();
|
||||
if (NODE_COLORS.hasOwnProperty(title)) {
|
||||
let colorKey = NODE_COLORS[title];
|
||||
const nclass = node.comfyClass;
|
||||
if (NODE_COLORS.hasOwnProperty(nclass)) {
|
||||
let colorKey = NODE_COLORS[nclass];
|
||||
|
||||
if (colorKey === "random") {
|
||||
// Check for a valid color key before popping
|
||||
@@ -96,4 +96,4 @@ const ext = {
|
||||
}
|
||||
};
|
||||
|
||||
app.registerExtension(ext);
|
||||
app.registerExtension(ext);
|
||||
|
||||
Reference in New Issue
Block a user