Files
2026-01-09 09:47:51 +03:00

24 lines
552 B
JavaScript

import { app } from "../../scripts/app.js";
app.registerExtension({
name: "ComfyUI.Artha.Nodes.Project.Setup",
async beforeRegisterNodeDef(nodeType, nodeData, app) {
if (nodeData.name === "ArthaProjectSetup") {
const onNodeCreated = nodeType.prototype.onNodeCreated;
nodeType.prototype.onNodeCreated = function () {
onNodeCreated?.apply(this, arguments);
this.color = "#222233";
this.bgcolor = "#333355";
};
}
}
});