Support ComfyUI hosted on relative URLs

Closes #3208
This commit is contained in:
Cohee
2024-12-21 21:25:02 +02:00
parent 71d2530329
commit 5739efc59b
2 changed files with 11 additions and 10 deletions

View File

@ -1111,7 +1111,8 @@ function onHrSecondPassStepsInput() {
}
function onComfyUrlInput() {
extension_settings.sd.comfy_url = $('#sd_comfy_url').val();
// Remove trailing slashes
extension_settings.sd.comfy_url = String($('#sd_comfy_url').val() ?? '').replace(/\/$/, '');
saveSettingsDebounced();
}