mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 20:52:11 -03:00
0.35
This commit is contained in:
14
web/js/text_to_speech.js
Normal file
14
web/js/text_to_speech.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { app } from "../../../scripts/app.js";
|
||||
|
||||
app.registerExtension({
|
||||
name: "Bjornulf.TextToSpeech",
|
||||
async nodeCreated(node) {
|
||||
if (node.comfyClass === "Bjornulf_TextToSpeech") {
|
||||
// Set seed widget to hidden input
|
||||
const seedWidget = node.widgets.find((w) => w.name === "seed");
|
||||
if (seedWidget) {
|
||||
seedWidget.type = "HIDDEN";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user