mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-05-10 09:02:30 +08:00
Fix deprecated ui.js import in comfyui-share-copus.js
This commit is contained in:
parent
4a84ec185b
commit
91bfd8e6d3
@ -1,7 +1,14 @@
|
|||||||
import { app } from "../../scripts/app.js";
|
import { app } from "../../scripts/app.js";
|
||||||
import { $el, ComfyDialog } from "../../scripts/ui.js";
|
|
||||||
import { customAlert } from "./common.js";
|
import { customAlert } from "./common.js";
|
||||||
|
|
||||||
|
// === SHIM FOR NEW COMFYUI (removes ui.js warning) ===
|
||||||
|
let $el, ComfyDialog;
|
||||||
|
if (window?.comfyAPI?.ui) {
|
||||||
|
({ $el, ComfyDialog } = window.comfyAPI.ui);
|
||||||
|
} else {
|
||||||
|
({ $el, ComfyDialog } = await import("../../scripts/ui.js"));
|
||||||
|
}
|
||||||
|
|
||||||
const env = "prod";
|
const env = "prod";
|
||||||
|
|
||||||
let DEFAULT_HOMEPAGE_URL = "https://copus.io";
|
let DEFAULT_HOMEPAGE_URL = "https://copus.io";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user