Download custom_nodes/ComfyUI-Inspire-Pack/js/common.js from StupidGame/MyComfySetUp: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/StupidGame/MyComfySetUp/resolve/main/custom_nodes/ComfyUI-Inspire-Pack/js/common.js
- Command line
-
hf download hf://StupidGame/MyComfySetUp/custom_nodes/ComfyUI-Inspire-Pack/js/common.js
-
curl -L -o common.js https://huggingface.co/StupidGame/MyComfySetUp/resolve/main/custom_nodes/ComfyUI-Inspire-Pack/js/common.js
411 Bytes
| import { api } from "../../scripts/api.js"; | |
| function nodeFeedbackHandler(event) { | |
| let nodes = app.graph._nodes_by_id; | |
| let node = nodes[event.detail.node_id]; | |
| if(node) { | |
| if(event.detail.type == "text") { | |
| const w = node.widgets.find((w) => event.detail.widget_name === w.name); | |
| if(w) { | |
| w.value = event.detail.data; | |
| } | |
| } | |
| } | |
| } | |
| api.addEventListener("inspire-node-feedback", nodeFeedbackHandler); |