Update appearance.js

This commit is contained in:
VALADI K JAGANATHAN
2023-12-13 19:08:44 +05:30
committed by GitHub
parent aba6cd0e6c
commit 97f3c47885

View File

@@ -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);