From f28214f29158787e8a7ea512987a7e87aba4536c Mon Sep 17 00:00:00 2001 From: CMonk Date: Tue, 23 Apr 2024 04:16:12 +0800 Subject: [PATCH] Fix default address when first trying to connect and nothing is in the text box and nothing is saved in the storage This error causes unable to connect until restart of photoshop --- photoshop/src/system/ComfyConnection.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/photoshop/src/system/ComfyConnection.js b/photoshop/src/system/ComfyConnection.js index 5b44461..0c390bd 100644 --- a/photoshop/src/system/ComfyConnection.js +++ b/photoshop/src/system/ComfyConnection.js @@ -33,6 +33,9 @@ class ComfyConnection { comfyURL = ''; constructor(comfyURL) { ComfyConnection.instance = this; + if (!comfyURL) { + comfyURL = 'http://127.0.0.1:8188' + } this.comfyURL = comfyURL.replace(/\/*$/, ''); this.connect(); }