Load settings fix

"both" was missing
This commit is contained in:
Shinihime
2024-05-21 22:09:58 +02:00
committed by GitHub
parent 365f790f53
commit 5a00655e33

View File

@@ -113,7 +113,7 @@ ext.loadedGraphNode = function(node, app) {
else if (node.comfyClass === "HighRes-Fix Script") {
const upscaleTypeWidget = node.widgets.find(w => w.name === "upscale_type");
if (upscaleTypeWidget && upscaleTypeWidget.value !== "latent" && upscaleTypeWidget.value !== "pixel") {
if (upscaleTypeWidget && upscaleTypeWidget.value !== "latent" && upscaleTypeWidget.value !== "pixel" && upscaleTypeWidget.value !== "both") {
console.log("[EfficiencyUpdate]", "Reloading 'HighRes-Fix Script' node:", node);
// Reload the node and get the new node instance