From 420fbff0b9df6202c50c2c31c0b91cde62319a36 Mon Sep 17 00:00:00 2001 From: Radionic Date: Wed, 20 Dec 2023 17:09:45 +0800 Subject: [PATCH] fix: embedding id --- js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index c22dab5..d188493 100644 --- a/js/index.js +++ b/js/index.js @@ -749,7 +749,7 @@ function injectUIComponentToComfyuimenu() { app.graphToPrompt().then(p=>{ console.log('fkfk'); let json = JSON.stringify(p.output, null, 2); // convert the data to a JSON string - json = json.replace(/"seed": (\d+)/g, `"seed": "SEED"`).replace(/"image": "(?!.*mask.*\.png).*"/g, '"image": "reference_image_avatech"').replace(/"embedding_id": "(\d+)"/g, '"embedding_id": "embedding_id_avatech"'); + json = json.replace(/"seed": (\d+)/g, `"seed": "SEED"`).replace(/"image": "(?!.*mask.*\.png).*"/g, '"image": "reference_image_avatech"').replace(/"embedding_id": ".*"/g, '"embedding_id": "embedding_id_avatech"'); const blob = new Blob([json], {type: "application/json"}); const url = URL.createObjectURL(blob); a.href = url;