mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-21 21:22: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",
|
name: "efficiency.appearance",
|
||||||
|
|
||||||
nodeCreated(node) {
|
nodeCreated(node) {
|
||||||
const title = node.getTitle();
|
const nclass = node.comfyClass;
|
||||||
if (NODE_COLORS.hasOwnProperty(title)) {
|
if (NODE_COLORS.hasOwnProperty(nclass)) {
|
||||||
let colorKey = NODE_COLORS[title];
|
let colorKey = NODE_COLORS[nclass];
|
||||||
|
|
||||||
if (colorKey === "random") {
|
if (colorKey === "random") {
|
||||||
// Check for a valid color key before popping
|
// 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