Initial commit

This commit is contained in:
BRADSEC
2025-01-25 16:39:27 +10:00
commit 470e2237f7
13 changed files with 256 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { app } from "../../../scripts/app.js";
app.registerExtension({
name: "string.strip",
async beforeRegisterNodeDef(nodeType) {
if (nodeType.comfyClass === "StringStrip") {
nodeType.prototype.onNodeCreated = function() {
// Add an input port for `input_text`
this.addInput("input_string", "STRING");
};
}
}
});
app.registerExtension({
name: "string.replace",
async beforeRegisterNodeDef(nodeType) {
if (nodeType.comfyClass === "StringReplace") {
nodeType.prototype.onNodeCreated = function() {
// Add an input port for `input_text`
this.addInput("input_string", "STRING");
};
}
}
});