From c4edfbc3744e40a3079760297b5c8f9c38ddace5 Mon Sep 17 00:00:00 2001 From: bymyself Date: Mon, 14 Apr 2025 10:54:22 -0700 Subject: [PATCH] only load JS extensions when legacy arg is set --- comfyui_manager/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/comfyui_manager/__init__.py b/comfyui_manager/__init__.py index e396547c..38328c6a 100644 --- a/comfyui_manager/__init__.py +++ b/comfyui_manager/__init__.py @@ -2,8 +2,6 @@ import os import logging from comfy.cli_args import args -ENABLE_LEGACY_COMFYUI_MANAGER_FRONT_DEFAULT = True # Enable legacy ComfyUI Manager frontend while new UI is in beta phase - def prestartup(): from . import prestartup_script # noqa: F401 logging.info('[PRE] ComfyUI-Manager') @@ -14,8 +12,7 @@ def start(): from .common import cm_global # noqa: F401 if not args.disable_manager: - should_show_legacy_manager_front = args.enable_manager_legacy_ui or ENABLE_LEGACY_COMFYUI_MANAGER_FRONT_DEFAULT - if should_show_legacy_manager_front: + if args.enable_manager_legacy_ui: try: from .legacy import manager_server # noqa: F401 from .legacy import share_3rdparty # noqa: F401