mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 14:54:37 +00:00
Perform text replacement for SaveAnimatedWEBP in addition to SaveImage (#403)
This commit is contained in:
@@ -5,7 +5,7 @@ import { applyTextReplacements } from '../../scripts/utils'
|
||||
app.registerExtension({
|
||||
name: 'Comfy.SaveImageExtraOutput',
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
if (nodeData.name === 'SaveImage') {
|
||||
if (nodeData.name === 'SaveImage' || nodeData.name === 'SaveAnimatedWEBP') {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated
|
||||
// When the SaveImage node is created we want to override the serialization of the output name widget to run our S&R
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
|
||||
Reference in New Issue
Block a user