diff --git a/web/js/editor-loader.js b/web/js/editor-loader.js index 9d43f26..0f041b8 100644 --- a/web/js/editor-loader.js +++ b/web/js/editor-loader.js @@ -39,8 +39,12 @@ if (!packName) { } else { // Base prefix covers deployments behind a sub-path reverse proxy // ("/comfyui/extensions//..." -> "/comfyui/"); the pack's own - // static mount sits at "/". - const base = '/' + segments.slice(0, extensionsIndex).join('/') + '/'; + // static mount sits at "/". For the standard deployment + // there is no prefix and base is exactly "/" - it must NEVER be "//", + // which the browser would parse as a protocol-relative URL and try to + // resolve "" as a DNS hostname (net::ERR_NAME_NOT_RESOLVED). + const prefix = segments.slice(0, extensionsIndex); + const base = prefix.length ? '/' + prefix.join('/') + '/' : '/'; // Top-level await: extension scripts are awaited before ComfyUI registers // node definitions, so the editor's registerExtension()/custom-widget // hooks stay in the normal loading order.