mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-05-13 18:37:25 +08:00
Fix deprecated ui.js import in comfyui-gui-builder.js
This commit is contained in:
parent
8d5c12037f
commit
336a945ff8
@ -1,4 +1,9 @@
|
|||||||
import { $el } from "../../scripts/ui.js";
|
// === SHIM FOR NEW COMFYUI (removes ui.js warning) ===
|
||||||
|
let $el;
|
||||||
|
if (window?.comfyAPI?.ui) {
|
||||||
|
({ $el } = window.comfyAPI.ui);
|
||||||
|
} else {
|
||||||
|
({ $el } = await import("../../scripts/ui.js"));
|
||||||
|
|
||||||
function normalizeContent(content) {
|
function normalizeContent(content) {
|
||||||
const tmp = document.createElement('div');
|
const tmp = document.createElement('div');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user