mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-05-10 00:52:32 +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) {
|
||||
const tmp = document.createElement('div');
|
||||
@ -224,4 +229,4 @@ export function buildGuiFrameCustomHeader(dialogId, customHeader, content, owner
|
||||
});
|
||||
|
||||
return dialog_mask;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user